Skip to content

Commit d283323

Browse files
committed
refactor(workflows): brought back deprecate old versions, refreshed
1 parent b7085d7 commit d283323

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish-dev.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ jobs:
2424
# npm run test is excluded here intentionally
2525
run: npm run lint && npm run prettier
2626

27+
- name: Deprecate old versions
28+
run: 'npm deprecate quickpostgres@"$(npm show quickpostgres@dev version)" "no longer supported" || true'
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
2732
- name: Publish
2833
run: |
29-
npm version --git-tag-version=false $(jq --raw-output '.version' package.json)-$(date +%s)-$(git rev-parse --short HEAD)
34+
npm version --git-tag-version=false $(jq --raw-output '.version' package.json)-dev.$(date +%s).$(git rev-parse --short HEAD)
3035
npm publish --tag dev || true
3136
env:
3237
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)