Skip to content

v0.1.4

v0.1.4 #9

Workflow file for this run

name: NPM Publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: git config --global user.name "Michael Heap"
- run: git config --global user.email "[email protected]"
- run: npm version ${{ github.event.release.tag_name }}
- run: npm run build --if-present
- run: npm test --if-present
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: git tag -f ${{ github.event.release.tag_name }} ${{ github.event.release.target_commitish }}
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: git push origin ${{ github.event.release.tag_name }} --force
env:
github-token: ${{ secrets.GITHUB_TOKEN }}