Use npm run for better compatibility #20
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: node:20 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: yarn install | |
- run: yarn test | |
- run: npm --no-git-tag-version version 0.0.0-$GITHUB_SHA | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{secrets.NPM_TOKEN}} | |
access: public |