Skip to content

1.0.5

1.0.5 #36

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- "*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build package
run: npm run build
- name: Create GitHub release
uses: ncipollo/release-action@v1.14.0
with:
artifacts: dist/*.js
bodyFile: CHANGE.md
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}