Files
discordeno/.github/workflows/release.yml
Seren_Modz 21 8b9930ffe0 ci(release): publish with yarn instead of npm (#4646)
* chore: update yarn to 4.12.0

* ci(release): publish with yarn instead of npm

* chore: update browsers list db

Signed-off-by: Seren_Modz 21 <seren@kings-world.net>

* chore(deps): add a resolution for react types

docusaurus is using react types v18, while discordeno uses v19

Signed-off-by: Seren_Modz 21 <seren@kings-world.net>

* fix: prefix the jsx element type with the react namespace

Signed-off-by: Seren_Modz 21 <seren@kings-world.net>

* chore(deps): update @rspack/core to v1.6.8

Signed-off-by: Seren_Modz 21 <seren@kings-world.net>

---------

Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
Co-authored-by: Fleny <Fleny113@outlook.com>
2025-12-19 18:12:37 +01:00

42 lines
1.3 KiB
YAML

name: Release
permissions:
contents: read
packages: write
id-token: write
on:
push:
branches:
- main
paths:
- packages/**
- .github/**
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package: ['gateway', 'rest', 'types', 'utils', 'bot', 'discordeno']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
cache: yarn
registry-url: 'https://registry.npmjs.org'
scope: '@discordeno'
- run: yarn install --immutable
- name: build Package
run: yarn release-build --filter=./packages/${{ matrix.package }}
- name: Bump Package Version
if: ${{ github.event_name != 'release' && github.event.action != 'published' }}
run: node ./scripts/bumpVersionByCommit.js ${{ matrix.package }}
# If the action is running from a release, if prerelease use beta tag else use latest tag, otherwise use the next tag
- run: yarn npm publish --tag ${{ github.event_name == 'release' && github.event.action == 'published' && (github.event.release.prerelease && 'beta' || 'latest') || 'next' }} --access public --provenance
working-directory: packages/${{ matrix.package }}