Skip to content
Merged
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 12 additions & 17 deletions .github/workflows/publish-npm-deserializer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,22 @@ on:
default: nightly

jobs:
set-env:
runs-on: ubuntu-latest
outputs:
resolved-environment: ${{ steps.setenv.outputs.env }}
steps:
- id: setenv
run: |
if [ "${{ github.event.inputs.tag }}" = "latest" ]; then
echo "env=production" >> $GITHUB_OUTPUT
else
echo "env=staging" >> $GITHUB_OUTPUT
fi

publish-npm:
needs: set-env
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
with:
scope: '@iexec/deserializer'
registry: 'https://registry.npmjs.org'
node-version: '18'
environment: ${{ needs.set-env.outputs.resolved-environment }}
tag: ${{ github.event.inputs.tag }}
environment: production
working-directory: "packages/dataprotector-deserializer"
install-command: |
npm ci
cd ../sdk
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm ci
npm run codegen
npm run build
cd ../dataprotector-deserializer
npm run test:prepare
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need this ?

secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}
Loading