Skip to content

feat add claims to the login webhook payload #22

feat add claims to the login webhook payload

feat add claims to the login webhook payload #22

Workflow file for this run

name: Publish NPM Package
on:
push:
tags:
- '*.*.*'
jobs:
build_and_publish:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Extract git tag name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- run: yarn install
- name: Update package.json version based on a tag
run: |
node -e " \
const package =JSON.parse(fs.readFileSync('package.json', 'utf8'));
package.version = '$RELEASE_VERSION'; \
fs.writeFileSync('package.json', JSON.stringify(package)); \
fs.writeFileSync('src/version.ts', 'export const version = \'$RELEASE_VERSION\';'); \
"
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
- run: yarn build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}