Skip to content

Merge pull request #8 from affinidi/Sanjay-releaseFix #7

Merge pull request #8 from affinidi/Sanjay-releaseFix

Merge pull request #8 from affinidi/Sanjay-releaseFix #7

name: Public Release to npmjs.com
on:
push:
branches:
- main
- beta
jobs:
release:
runs-on: ubuntu-latest
environment:
name: publishEnv
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
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: ${{ secrets.PERSONAL_GITHUB_TOKEN }}