Skip to content

add gh actions build #1

add gh actions build

add gh actions build #1

Workflow file for this run

name: Publish npm package
on:
push:
tags: v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Or any other version you need
- name: Create nuget package
run: |
cd src
npm version ${{ steps.get_version.outputs.version_number }}
npm pack
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}