mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 20:44:43 +12:00
ci: Use non-deprecated output parameters (#9878)
ci: update to output parameters
This commit is contained in:
parent
e1edba17c4
commit
ec47e72b41
1 changed files with 8 additions and 7 deletions
15
.github/workflows/publish-dev.yml
vendored
15
.github/workflows/publish-dev.yml
vendored
|
@ -52,22 +52,23 @@ jobs:
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
- name: Check the current development version
|
- name: Check the current development version
|
||||||
id: pre-release
|
id: release-check
|
||||||
run: |
|
run: |
|
||||||
if [[ $(npm view ${{ matrix.package }}@dev version | grep -e "$(git rev-parse --short HEAD)") ]]; \
|
if [[ $(npm view ${{ matrix.package }}@dev version | grep -e "$(git rev-parse --short HEAD)") ]]; \
|
||||||
then echo '::set-output name=release::false'; \
|
then echo "RELEASE=0" >> "$GITHUB_OUTPUT"; \
|
||||||
else echo '::set-output name=release::true'; fi
|
else echo "RELEASE=1" >> "$GITHUB_OUTPUT"; \
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.pre-release.outputs.release == 'true'
|
if: steps.release-check.outputs.release == '1'
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
|
|
||||||
- name: Build dependencies
|
- name: Build dependencies
|
||||||
if: steps.pre-release.outputs.release == 'true'
|
if: steps.release-check.outputs.release == '1'
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
if: steps.pre-release.outputs.release == 'true'
|
if: steps.release-check.outputs.release == '1'
|
||||||
run: |
|
run: |
|
||||||
pnpm --filter=${{ matrix.package }} run release --preid "dev.$(date +%s)-$(git rev-parse --short HEAD)"
|
pnpm --filter=${{ matrix.package }} run release --preid "dev.$(date +%s)-$(git rev-parse --short HEAD)"
|
||||||
pnpm --filter=${{ matrix.package }} publish --no-git-checks --tag dev || true
|
pnpm --filter=${{ matrix.package }} publish --no-git-checks --tag dev || true
|
||||||
|
@ -75,7 +76,7 @@ jobs:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||||
|
|
||||||
- name: Deprecate prior development releases
|
- name: Deprecate prior development releases
|
||||||
if: steps.pre-release.outputs.release == 'true'
|
if: steps.release-check.outputs.release == '1'
|
||||||
run: pnpm exec npm-deprecate --name "*dev*" --message "This version is deprecated. Please use a newer version." --package ${{ matrix.package }}
|
run: pnpm exec npm-deprecate --name "*dev*" --message "This version is deprecated. Please use a newer version." --package ${{ matrix.package }}
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue