Skip to content

Commit

Permalink
Merge pull request #2831 from iotaledger/fix/npm-action
Browse files Browse the repository at this point in the history
fix npm package publishing
  • Loading branch information
cwarnerdev authored Aug 28, 2023
2 parents 4d80f3d + 99c3a33 commit 15acc49
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 47 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-iscmagic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish @iota/iscmagic

on:
workflow_call:
inputs:
version:
required: true
type: string
secrets:
NPM_TOKEN:
required: true

jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/vm/core/evm/iscmagic
steps:
- uses: actions/checkout@v3
-
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
scope: iota
-
run: npm version ${{ inputs.version }}
-
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/publish-iscutils.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish @iota/iscutils

on:
workflow_call:
inputs:
version:
required: true
type: string
secrets:
NPM_TOKEN:
required: true

jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tools/evm/iscutils
steps:
- uses: actions/checkout@v3
-
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
scope: iota
-
run: npm version ${{ inputs.version }}
-
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/publish-npm.yml

This file was deleted.

24 changes: 13 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,18 @@ jobs:
build-args: |
BUILD_LD_FLAGS=-X=github.com/iotaledger/wasp/components/app.Version=${{ steps.tagger.outputs.tag }}
release-iscmagic:
uses: ./.github/workflows/publish-iscmagic.yml
needs: release-docker
with:
version: ${{ needs.release-docker.outputs.version }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

release-npm-packacges:
release-iscutils:
uses: ./.github/workflows/publish-iscutils.yml
needs: release-docker
runs-on: ubuntu-latest
strategy:
matrix:
workingDirectory: ['./packages/vm/core/evm/iscmagic', './tools/evm/iscutils']
steps:
- name: Release NPM package
uses: ./.github/workflows/publish-npm.yml
with:
version: ${{ needs.release-docker.outputs.version }}
workingDirectory: ${{ matrix.workingDirectory }}
with:
version: ${{ needs.release-docker.outputs.version }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 15acc49

Please sign in to comment.