Merge branch 'develop'
This commit is contained in:
commit
3642a289ab
1 changed files with 36 additions and 0 deletions
36
.github/workflows/publish-dev.yml
vendored
Normal file
36
.github/workflows/publish-dev.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Publish dev
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 */12 * * *'
|
||||||
|
jobs:
|
||||||
|
npm:
|
||||||
|
name: npm
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: develop
|
||||||
|
|
||||||
|
- name: Install Node v16
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Deprecate old releases
|
||||||
|
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)-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