mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: remove old release ci (#11171)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
50
.github/workflows/publish-release.yml
vendored
50
.github/workflows/publish-release.yml
vendored
@@ -1,50 +0,0 @@
|
|||||||
name: Publish Release
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [released]
|
|
||||||
jobs:
|
|
||||||
npm-publish:
|
|
||||||
name: npm publish
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
env:
|
|
||||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
||||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
||||||
if: github.repository_owner == 'discordjs'
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v5
|
|
||||||
|
|
||||||
- name: Install Node.js v22
|
|
||||||
uses: actions/setup-node@v5
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
package-manager-cache: false
|
|
||||||
registry-url: https://registry.npmjs.org/
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
uses: ./packages/actions/src/pnpmCache
|
|
||||||
|
|
||||||
- name: Build dependencies
|
|
||||||
run: pnpm run build
|
|
||||||
|
|
||||||
- name: Extract package and semver from tag
|
|
||||||
id: extract-tag
|
|
||||||
uses: ./packages/actions/src/formatTag
|
|
||||||
with:
|
|
||||||
tag: ${{ github.ref_name }}
|
|
||||||
|
|
||||||
- name: Publish package
|
|
||||||
run: |
|
|
||||||
pnpm --filter=${{ steps.extract-tag.outputs.subpackage == 'true' && '@discordjs/' || '' }}${{ steps.extract-tag.outputs.package }} publish --provenance --no-git-checks
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
||||||
|
|
||||||
- name: create-discord-bot -> create-discord-app
|
|
||||||
if: steps.extract-tag.outputs.package == 'create-discord-bot'
|
|
||||||
run: |
|
|
||||||
pnpm --filter=create-discord-bot run rename-to-app
|
|
||||||
pnpm --filter=create-discord-app publish --provenance --no-git-checks
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
||||||
Reference in New Issue
Block a user