Skip to content

Merge pull request #84 from mittwald/fix-watch #17

Merge pull request #84 from mittwald/fix-watch

Merge pull request #84 from mittwald/fix-watch #17

Workflow file for this run

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