feat: decode user data from JWT access token and add impersonated pro… #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 # This action checks-out your repository under $GITHUB_WORKSPACE, so your workflow can access it. | |
with: | |
ref: main | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
registry-url: "https://registry.npmjs.org" # This registry URL is necessary for publishing on NPM | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build Package | |
run: npm run build | |
- name: Release Package | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # should be set in Github repo, need this to publish on NPM | |
GITHUB_TOKEN: ${{ secrets.PLATFORM_READ_PRIVATE_REPOS }} # automatically provided by Github Actions, need this to create a GitHub Release | |
run: | | |
npx semantic-release |