From 665a9ba1b82c42e8691b4e25173721a423475f0f Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Sat, 7 Aug 2021 23:13:20 +0545 Subject: [PATCH] Revert "ci(PublishDev): remove dev publish" This reverts commit 3580a4a4d3b8f607213e5a5cde0d40dc61ee732a. --- .github/workflows/publish-dev.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/publish-dev.yml diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml new file mode 100644 index 0000000..ff20bce --- /dev/null +++ b/.github/workflows/publish-dev.yml @@ -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: v5 + + - 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@"~5.0.0-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 publish --tag dev || true + env: + NODE_AUTH_TOKEN: ${{ secrets.npm_token }}