Skip to content

docs: generated readme to manage issuance (#401) #293

docs: generated readme to manage issuance (#401)

docs: generated readme to manage issuance (#401) #293

name: Public Release to npmjs.com
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
environment:
name: publishEnv
steps:
- name: Generate token from app token #https://github.com/tibdex/github-app-token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.RELEASE_BOT_PKEY }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: configure git
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
scope: '@affinidi'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run release
run: npx semantic-release@21
env:
NODE_AUTH_TOKEN: ${{ secrets.PUBLIC_NPM_NODE_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}