Bump codegen #210
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to NPM | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: NPM | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.13.1 | |
- run: npm i -D | |
- run: npm run build | |
- name: 'Automated Version Bump' | |
uses: 'phips28/gh-action-bump-version@master' | |
with: | |
minor-wording: 'add,Adds,new' | |
major-wording: 'MAJOR,cut-major' | |
patch-wording: 'patch,fixes,fix,bug' # Providing patch-wording will override commits | |
# defaulting to a patch bump. | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |