Skip to content

Commit 7f27683

Browse files
committed
ci(deserializer): update npm publishing workflow to use new tag input
1 parent af78bf8 commit 7f27683

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/publish-npm-deserializer.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,16 @@ on:
1313
default: nightly
1414

1515
jobs:
16-
set-env:
17-
runs-on: ubuntu-latest
18-
outputs:
19-
resolved-environment: ${{ steps.setenv.outputs.env }}
20-
steps:
21-
- id: setenv
22-
run: |
23-
if [ "${{ github.event.inputs.tag }}" = "latest" ]; then
24-
echo "env=production" >> $GITHUB_OUTPUT
25-
else
26-
echo "env=staging" >> $GITHUB_OUTPUT
27-
fi
28-
2916
publish-npm:
3017
needs: set-env
31-
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@publish-npm-v1.3.0
18+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
3219
with:
3320
scope: '@iexec/deserializer'
3421
registry: 'https://registry.npmjs.org'
3522
node-version: '18'
36-
environment: ${{ needs.set-env.outputs.resolved-environment }}
23+
tag: ${{ github.event.inputs.tag }}
24+
install-command: 'npm ci && npm run test:prepare'
25+
environment: ${{ needs.set-env.outputs.resolved-environment }} # For secrets env
3726
working-directory: "packages/dataprotector-deserializer"
3827
secrets:
3928
npm-token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)