mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Only announce changelog and upload docs if publishing to npm succeeded
This commit is contained in:
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@@ -4,13 +4,13 @@ on:
|
|||||||
types: [created]
|
types: [created]
|
||||||
jobs:
|
jobs:
|
||||||
publish_npm:
|
publish_npm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
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: 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,12 +38,12 @@ 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
|
||||||
|
|
||||||
- name: Deleting default exports for ESM.
|
- name: Deleting default exports for ESM.
|
||||||
run: node .github/docs.js
|
run: node .github/docs.js
|
||||||
|
|
||||||
- name: TypeDoc
|
- name: TypeDoc
|
||||||
@@ -58,13 +59,14 @@ jobs:
|
|||||||
git push
|
git push
|
||||||
|
|
||||||
publish_discord:
|
publish_discord:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
needs: publish_npm
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user