Skip to content

Commit

Permalink
fix: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
dendavidov-affinidi committed Nov 24, 2022
1 parent 9b046cf commit 08b129a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/github-release-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Public Release to npmjs.com

on:
push:
branches:
- main

jobs:
if_merged:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- 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:binary

- name: Run release
run:
npm run semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLIC_NPM_NODE_AUTH_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
12 changes: 2 additions & 10 deletions .github/workflows/public-npm-release-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Public Release to npmjs.com

on:
push:
branches:
- main
release:
types: [published]

jobs:
if_merged:
Expand All @@ -25,13 +24,6 @@ jobs:
- name: Build
run: npm run build:binary

- name: Run release
run:
npm run semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLIC_NPM_NODE_AUTH_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Publish to npmjs.org
run: npm publish --access public --dry-run
env:
Expand Down

0 comments on commit 08b129a

Please sign in to comment.