-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use setup node action instead of container image
- Loading branch information
1 parent
eb57962
commit 48786af
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,13 @@ on: | |
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:12.22.7 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.22 | ||
- name: Install dependencies | ||
uses: "./.github/actions/npm_install" | ||
- name: Build | ||
|
@@ -29,12 +31,15 @@ jobs: | |
path: dist | ||
publish_cloudflare_production: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:20.2.0 | ||
|
||
needs: [build_and_test] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
- name: Download Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -44,12 +49,15 @@ jobs: | |
notify_on_slack: | ||
if: always() | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:20.2.0 | ||
|
||
needs: [publish_cloudflare_production, build_and_test] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
- name: Conclusion | ||
uses: technote-space/workflow-conclusion-action@v3 | ||
- uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,13 @@ on: | |
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:12.22.7 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.22 | ||
- name: Install dependencies | ||
uses: "./.github/actions/npm_install" | ||
- name: Build | ||
|
@@ -28,12 +30,14 @@ jobs: | |
path: dist | ||
publish_cloudflare_production: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:20.2.0 | ||
needs: [build_and_test] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
- uses: actions/[email protected] | ||
with: | ||
path: dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters