Skip to content

v2.1.1

v2.1.1 #14

Workflow file for this run

name: Release Major Version
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
publish-npm-major:
needs: build
runs-on: ubuntu-latest
if: contains(github.event.release.body, '#major')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm version major
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOK }}
- name: Push new version tag
run: |
git push origin HEAD --tags