Skip to content

Upgrade version to 0.9.1 #41

Upgrade version to 0.9.1

Upgrade version to 0.9.1 #41

Workflow file for this run

name: Release to NPM
# Controls when the action will run. Triggers the workflow on pushed tags
on:
push:
tags:
- '*'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Set up Node
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
# Run install dependencies
- name: Install dependencies
run: npm ci
- name: Build
run: npm run prepublish
- name: Test
run: npm test
# Publish to npm
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}