Skip to content

Commit

Permalink
Merge pull request #7 from JoinColony/cicd/snapshot-timestamp
Browse files Browse the repository at this point in the history
cicd: include timestamp in snapshot version tag
  • Loading branch information
chmanie authored Jun 19, 2024
2 parents ee47357 + 0d1274a commit d923759
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:

- name: Publish package
run: |
npm version 0.0.0-snapshot-${{ github.event.inputs.tag }}-${{ env.VERSION_HASH }} --no-git-tag-version
TIMESTAMP=$(date +%Y%m%d%H%M%S)
npm version 0.0.0-snapshot-${{ github.event.inputs.tag }}-${{ env.VERSION_HASH }}-${TIMESTAMP} --no-git-tag-version
npm publish --access public --tag snapshot
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit d923759

Please sign in to comment.