-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update all workflows to use: - actions/setup-node@v2 with `node-version: 16` - actions/checkout@v2 - bahmutov/npm-install@v1 License: MIT Signed-off-by: Oli Evans <[email protected]>
- Loading branch information
Showing
8 changed files
with
35 additions
and
43 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
node-version: '16' | ||
- uses: bahmutov/npm-install@v1 | ||
- run: yarn test:api | ||
deploy-dev: | ||
|
@@ -23,7 +23,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v2 | ||
- name: Publish app | ||
uses: cloudflare/[email protected] | ||
env: | ||
|
@@ -37,7 +37,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v2 | ||
- name: Publish app | ||
uses: cloudflare/[email protected] | ||
env: | ||
|
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 |
---|---|---|
|
@@ -17,6 +17,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- uses: bahmutov/npm-install@v1 | ||
- name: Typecheck | ||
uses: gozala/[email protected] | ||
|
@@ -33,23 +36,15 @@ jobs: | |
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- uses: bahmutov/npm-install@v1 | ||
- name: Test (ES) | ||
run: yarn --cwd packages/client test:es | ||
|
||
- name: Test (Web) | ||
run: yarn --cwd packages/client test:web | ||
|
||
- name: Test (CJS) | ||
run: yarn --cwd packages/client test:cjs | ||
|
||
- name: Coverage | ||
run: yarn --cwd packages/client coverage |
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
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
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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
deploy-api: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v2 | ||
- name: Publish app | ||
uses: cloudflare/[email protected] | ||
env: | ||
|
@@ -35,23 +35,32 @@ jobs: | |
if: github.event.inputs.environment == 'production' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- uses: bahmutov/npm-install@v1 | ||
- run: ./packages/tools/cli.js dns --name nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CLOUDFLARE_ZONE }} --content ${{ github.event.inputs.frontend_cname }} | ||
- run: echo "::warning::https://nft.storage" | ||
deploy-frontend-staging: | ||
if: github.event.inputs.environment == 'staging' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- uses: bahmutov/npm-install@v1 | ||
- run: ./packages/tools/cli.js dns --name staging.nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CLOUDFLARE_ZONE }} --content ${{ github.event.inputs.frontend_cname }} | ||
- run: echo "::warning::https://staging.nft.storage" | ||
deploy-frontend-dev: | ||
if: github.event.inputs.environment == '' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- uses: bahmutov/npm-install@v1 | ||
- run: ./packages/tools/cli.js dns --name dev.nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CLOUDFLARE_ZONE }} --content ${{ github.event.inputs.frontend_cname }} | ||
- run: echo "::warning::https://dev.nft.storage" |
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
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