Skip to content

Node.js Package

Node.js Package #9

Workflow file for this run

name: Node.js Package
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm install
- run: npm run build
- run: npm publish --scope=@functionland --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}