Skip to content

update workflow v1.1.12 #2

update workflow v1.1.12

update workflow v1.1.12 #2

Workflow file for this run

name: Publish Package to npm
on:
push:
tags:
- 'v*' # Trigger only when pushing tags like v1.0.0
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm install
# - name: Run tests
# run: npm test
- name: Build package
run: npm run build
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
generate_release_notes: true