Merge pull request #84 from mittwald/fix-watch #17
Workflow file for this run
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: | |
tags: ["*"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "18.x" | |
- run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}" | |
- run: yarn | |
- run: yarn compile | |
- run: git config --global user.email [email protected] | |
- run: git config --global --replace-all user.name "Mittwald Release Bot" | |
- run: npm version --no-git-tag-version "$GITHUB_REF_NAME" | |
- run: cp README.md package.json dist/ | |
- run: cd dist && npm publish |