From b586df884b7120e41c65ff834641ceeb93e28097 Mon Sep 17 00:00:00 2001 From: ckohen Date: Mon, 20 Feb 2023 12:58:46 -0800 Subject: [PATCH] ci: create publish release workflow v13 (#9151) --- .github/workflows/publish-release.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish-release.yml diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml new file mode 100644 index 000000000..0aa4083a2 --- /dev/null +++ b/.github/workflows/publish-release.yml @@ -0,0 +1,30 @@ +name: Publish Release +on: + release: + types: [released] +jobs: + npm-publish: + name: npm publish + runs-on: ubuntu-latest + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + if: github.repository_owner == 'discordjs' + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install node.js v16 + uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org/ + cache: npm + + - name: Install dependencies + run: npm ci --ignore-scripts + + - name: Publish package (v13) + run: npm publish --tag v13-lts + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}