Only announce changelog and upload docs if publishing to npm succeeded
This commit is contained in:
parent
274aa5cb2e
commit
68d055634c
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
@ -22,6 +22,7 @@ jobs:
|
||||
|
||||
publish_docs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: publish_npm
|
||||
steps:
|
||||
- name: Checkout play dl
|
||||
uses: actions/checkout@v2
|
||||
@ -37,7 +38,7 @@ jobs:
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
@ -59,12 +60,13 @@ jobs:
|
||||
|
||||
publish_discord:
|
||||
runs-on: ubuntu-latest
|
||||
needs: publish_npm
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Publish on discord
|
||||
run: node .github/discord.js
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user