Skip to content

feat: FTL-17182 enable verification and consent logging in iota by de… #302

feat: FTL-17182 enable verification and consent logging in iota by de…

feat: FTL-17182 enable verification and consent logging in iota by de… #302

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: 20
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@24
env:
NODE_AUTH_TOKEN: ${{ secrets.PUBLIC_NPM_NODE_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}