Skip to content

v0.1.0

v0.1.0 #7

Workflow file for this run

name: Publish Package to npmjs
on:
release:
types:
- published
permissions:
contents: read
packages: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.release.tag_name }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
scope: '@stone-js'
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Build library
run: npm run build
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}