Skip to content

Commit

Permalink
{chore} update all actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bgotink committed Mar 29, 2024
1 parent 71aca92 commit 780a22b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 25 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@ on:
release:
types: [created]

permissions:
contents: read
packages: write

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
pages: write
steps:
# Set up
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
Expand Down Expand Up @@ -53,7 +52,7 @@ jobs:

# Release to GitHub Packages
- name: Setup Node for GitHub Packages
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: "https://npm.pkg.github.com"
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Publish website
on: workflow_dispatch

permissions:
contents: read
id-token: write
pages: write

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
pages: write
steps:
# Set up

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x

Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn

- name: Install
shell: bash
run: |
yarn install --immutable
- name: Check for duplicate dependencies (fix w/ `yarn dedupe`)
shell: bash
run: |
yarn dedupe --check
- if: ${{ github.event_name == 'pull_request' }}
name: Review Dependencies
uses: actions/dependency-review-action@v1
uses: actions/dependency-review-action@v4

- name: 'Check for formatting errors (fix w/ "yarn prettier --write path/to/file")'
run: |
yarn prettier --check .
shell: bash
- name: Build
shell: bash
run: |
yarn build
Expand All @@ -57,20 +53,18 @@ jobs:
- 20.x

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
cache: yarn

- name: Install
shell: bash
run: |
yarn install --immutable
- name: Run tests
shell: bash
run: |
yarn test

0 comments on commit 780a22b

Please sign in to comment.