Only announce changelog and upload docs if publishing to npm succeeded

This commit is contained in:
absidue 2021-12-30 16:50:16 +01:00
parent 274aa5cb2e
commit 68d055634c

View File

@ -10,7 +10,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
registry-url: 'https://registry.npmjs.org' registry-url: "https://registry.npmjs.org"
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
@ -22,6 +22,7 @@ jobs:
publish_docs: publish_docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: publish_npm
steps: steps:
- name: Checkout play dl - name: Checkout play dl
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -37,7 +38,7 @@ jobs:
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
registry-url: 'https://registry.npmjs.org' registry-url: "https://registry.npmjs.org"
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
@ -59,12 +60,13 @@ jobs:
publish_discord: publish_discord:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: publish_npm
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
registry-url: 'https://registry.npmjs.org' registry-url: "https://registry.npmjs.org"
- name: Publish on discord - name: Publish on discord
run: node .github/discord.js run: node .github/discord.js