Skip to content

v0.2.180

v0.2.180 #297

Workflow file for this run

name: Node.js Package
on:
release:
types: [released]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
working-directory: ./generated/js
- run: npm test
working-directory: ./generated/js
publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: NPM clean install
run: npm ci
working-directory: ./generated/js
- name: Update NPM version to tag
run: npm version ${{github.ref_name}}
working-directory: ./generated/js
- name: Publish package on NPM 📦
working-directory: ./generated/js
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}