ci: update PublishDev
This commit is contained in:
parent
69cec52d28
commit
e832cae8fa
1 changed files with 3 additions and 3 deletions
6
.github/workflows/publish-dev.yml
vendored
6
.github/workflows/publish-dev.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: v5
|
||||
ref: develop
|
||||
|
||||
- name: Install Node v16
|
||||
uses: actions/setup-node@v2
|
||||
|
@ -23,14 +23,14 @@ jobs:
|
|||
run: npm install
|
||||
|
||||
- name: Deprecate old releases
|
||||
run: npm deprecate discord-player@"~5.0.0-dev" "outdated version" || true
|
||||
run: npm deprecate discord-player@"~$(jq --raw-output '.version' package.json)-dev" "outdated version" || true
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
npx tsc --skipLibCheck
|
||||
npm version --git-tag-version=false $(jq --raw-output '.version' package.json).$(date +%s).$(git rev-parse --short HEAD)
|
||||
npm version --git-tag-version=false $(jq --raw-output '.version' package.json)-dev.$(date +%s).$(git rev-parse --short HEAD)
|
||||
npm publish --tag dev || true
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|
||||
|
|
Loading…
Reference in a new issue