mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-02 17:00:10 +00:00
chore: yarn please publish
This commit is contained in:
@@ -83,14 +83,14 @@ jobs:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
registry-url: https://registry.npmjs.org
|
||||
always-auth: true
|
||||
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Publish release to npm
|
||||
run: yarn npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
|
||||
- name: Create GitHub release
|
||||
run: node ./scripts/actions/create-release.mjs
|
||||
|
||||
9
.github/workflows/publish-next.yml
vendored
9
.github/workflows/publish-next.yml
vendored
@@ -33,6 +33,8 @@ jobs:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
registry-url: https://registry.npmjs.org
|
||||
always-auth: true
|
||||
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn
|
||||
@@ -45,9 +47,10 @@ jobs:
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
|
||||
- name: Publish new @next version
|
||||
- name: Set new version
|
||||
run: |
|
||||
yarn version $(jq --raw-output '.version' package.json)-next.$(git rev-parse --short HEAD).$(date +%s)
|
||||
|
||||
- name: Publish new @next version
|
||||
run: |
|
||||
yarn npm publish --tag next
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user