Skip to content

Commit

Permalink
add npm publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mfornos committed Jul 7, 2023
1 parent f19eb9e commit 8f5b595
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-npmjs-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Packages to NPM
on:
#release:
# types: [published]
workflow_dispatch:

jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
registry-url: https://registry.npmjs.org
scope: '@sodazone'
- name: Enable Corepack
run: corepack enable
- run: yarn install --immutable
- run: yarn build
- name: Publish ocelloids
run: npm publish --provenance --access public -w packages/core
- name: Publish ocelloids-contracts
run: npm publish --provenance --access public -w packages/pallets/contracts

0 comments on commit 8f5b595

Please sign in to comment.