Skip to content

Release

Release #6

Workflow file for this run

name: Release
on:
push:
tags: ['v[0-9]+.[0-9]+.[0-9]+']
jobs:
npm:
if: ${{ github.repository == 'panva/node-oidc-provider' }}
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: lts/hydrogen # 18
registry-url: https://registry.npmjs.org
always-auth: true
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
cleanup:
needs:
- npm
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git push origin $GITHUB_SHA:v8.x
- run: git push origin HEAD:main
github:
needs:
- npm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: lts/hydrogen # 18
cache: 'npm'
- run: node .release-notes.cjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}