Skip to content

Bump elliptic from 6.5.7 to 6.6.0 in /nodejs/examples/webhook-server #418

Bump elliptic from 6.5.7 to 6.6.0 in /nodejs/examples/webhook-server

Bump elliptic from 6.5.7 to 6.6.0 in /nodejs/examples/webhook-server #418

Workflow file for this run

name: Node
on:
push:
branches: [ main ]
tags:
- "nodejs/v**"
paths:
- '.github/workflows/node.yml'
- 'nodejs/**'
- 'test-resources/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/node.yml'
- 'nodejs/**'
- 'test-resources/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: cd nodejs && yarn --frozen-lockfile && yarn test
publish:
runs-on: ubuntu-latest
# Runs only on tags push
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Get version from tag
uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ github.ref_name }}
# matches tags starting with "nodejs/v" and uses the rest of the string as the version
regex: 'nodejs\/v(.*)'
- name: Publish to npm
run: |
cd nodejs
yarn --frozen-lockfile
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
VERSION=${{ steps.regex-match.outputs.group1 }}
npm version $VERSION
npm publish