Skip to content

v1.3.1

v1.3.1 #7

Workflow file for this run

name: npm publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm test
publish-npm:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- name: Update package.json version
run: |
VERSION=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//')
npm version $VERSION --no-git-tag-version
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}