diff --git a/.github/workflows/release-github.yaml b/.github/workflows/release-github.yaml new file mode 100644 index 0000000..00aa02d --- /dev/null +++ b/.github/workflows/release-github.yaml @@ -0,0 +1,18 @@ +name: Release GitHub + +on: + push: + branches: [release/*] + +jobs: + create-github-release: + name: Create GitHub Release and Git tag + runs-on: ubuntu-latest + environment: Release + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - uses: cucumber/action-create-github-release@v1.1.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-npm.yaml b/.github/workflows/release-npm.yaml new file mode 100644 index 0000000..9d4dbdb --- /dev/null +++ b/.github/workflows/release-npm.yaml @@ -0,0 +1,24 @@ +name: Release NPM + +on: + push: + branches: [release/*] + +jobs: + publish-npm: + name: Publish NPM module + runs-on: ubuntu-latest + environment: Release + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '22.x' + cache: 'npm' + cache-dependency-path: package-lock.json + - run: npm ci + - run: npm run build + - uses: cucumber/action-publish-npm@v1.1.0 + with: + npm-token: ${{ secrets.NPM_TOKEN }} + npm-tag: 'latest'