Skip to content

Commit 6349d0e

Browse files
committed
Planned GH workflow
1 parent b47c4c1 commit 6349d0e

File tree

3 files changed

+13
-43
lines changed

3 files changed

+13
-43
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,23 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout commit
13-
uses: actions/checkout@v2
14-
if: ${{ github.event_name == 'push' }}
15-
16-
- name: Checkout Pull Request
17-
uses: actions/checkout@v2
18-
with:
19-
# TODO: Can we unify the checkout steps i.e. does this value resolve to "undefined" on `push`?
20-
ref: ${{ github.event.pull_request.head.sha }}
21-
if: ${{ github.event_name == 'pull_request' }}
13+
uses: actions/checkout@v3
2214

23-
- name: Get yarn cache directory
24-
id: yarn
25-
run: echo "::set-output name=dir::$(yarn cache dir)"
15+
- name: Read .nvmrc
16+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
17+
id: nvm
2618

27-
- name: Restore yarn cache
28-
uses: actions/cache@v1.1.2
19+
- name: Setup node
20+
uses: actions/setup-node@v3
2921
with:
30-
path: ${{ steps.yarn.outputs.dir }}
31-
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/website/yarn.lock')) }}
22+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
23+
cache: yarn
3224

3325
- name: Install dependencies
3426
run: yarn install --frozen-lockfile
3527

36-
- name: '`yarn format` changes committed?'
28+
- name: "`yarn format` changes committed?"
3729
run: yarn format:check
30+
31+
- name: "`yarn gen-readme` changes committed?"
32+
run: yarn gen-readme --check

.github/workflows/readme.js.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.15.1

0 commit comments

Comments
 (0)