tools: update actions (#117)

Myles Borins committed May 10, 2022 at 12:02 UTC 9ce92ff9f0b185963e98bfb940732e9c4ed814f9
2 files changed +7 -7
.github/workflows/publish.yml
+4 -4
@@ -10,23 +10,23 @@ jobs:
10 steps:
11 # Check out the content (source branch)
12 - name: Check out source
13 - uses: actions/checkout@v2
13 + uses: actions/checkout@v3
14
15 # Check out the `dist` branch into the `public` directory.
16 - name: Check out documentation branch
17 - uses: actions/checkout@v2
17 + uses: actions/checkout@v3
18 with:
19 ref: 'dist'
20 path: 'public'
21
22 - name: Use Node.js
23 - uses: actions/setup-node@v1
23 + uses: actions/setup-node@v3
24 with:
25 node-version: 16.x
26
27 # Build the site
28 - name: Install npm packages
29 - run: npm install
29 + run: npm ci
30 - name: Build documentation
31 run: npm run build
32 env:
.github/workflows/update-cli.yml
+3 -3
@@ -14,20 +14,20 @@ jobs:
14 # workflow run that runs on: push. (Using the GitHub token would
15 # not run the workflow to prevent infinite recursion.)
16 - name: Check out source
17 - uses: actions/checkout@v2
17 + uses: actions/checkout@v3
18 with:
19 ssh-key: ${{ secrets.CLI_DEPLOY_KEY }}
20
21 # Make sure that the new content didn't break the build. We don't
22 # want to promote anything that would breaks.
23 - name: Use Node.js
24 - uses: actions/setup-node@v1
24 + uses: actions/setup-node@v3
25 with:
26 node-version: 16.x
27
28 # Add the CLI documentation to the content directory.
29 - name: Install npm packages
30 - run: npm install
30 + run: npm ci
31 - name: Fetch latest documentation
32 run: node cli/cli_fetch.js
33 - name: Clean up old documentation