Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,23 @@ on:
pull_request:
branches: [ master ]

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install
run: npm ci

- uses: actions/setup-node@v1
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: '16.x'
node-version: 24
registry-url: https://registry.npmjs.org/
scope: netatwork

- name: build
run: npm run build

# Note that this does not takes care of the versioning.
# Changelog generation, version tagging needs to be done, prior to this.
- run: npm ci
- run: npm run build

- name: publish to npm
run: npm publish --access public --@netatwork:registry=https://registry.npmjs.org/
- run: npm publish
if: startsWith(github.ref, 'refs/tags/v')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}