Skip to content

Commit

Permalink
ci: set version in package.json and use dry-run if required
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
  • Loading branch information
leninmehedy committed Oct 30, 2023
1 parent 77387a1 commit 8987bb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/flow-deploy-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ jobs:
working-directory: "fullstack-network-manager"
env:
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm ci && npm publish ${{ github.event.inputs.dry-run-enabled && '--dry-run' || '' }}
run: |
npm ci
npm i replace-json-property && ./node_modules/replace-json-property/bin/replace-json-property.bin.js package.json ${{ needs.prepare-release.outputs.version }} && cat package.json | grep 'version'
npm publish ${{ github.event.inputs.dry-run-enabled && '--dry-run' || '' }}
create-github-release:
name: Github / Release
Expand Down

0 comments on commit 8987bb7

Please sign in to comment.