bumped version because of the old version I released -.- #10
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: build | |
on: | |
pull_request: | |
push: | |
branches: [ master ] | |
tags: | |
- .* | |
jobs: | |
build_test_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
- run: npm ci | |
- run: npm run build | |
- run: npm run lint | |
- run: npm test | |
- name: publish to npmjs | |
uses: JS-DevTools/npm-publish@v1 | |
if: github.ref == 'refs/heads/master' | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
# don't try and deploy if versions haven't changed | |
check-version: true |