Skip to content

Commit

Permalink
build: add read-write Nx token
Browse files Browse the repository at this point in the history
  • Loading branch information
akikanellis committed Jan 26, 2024
1 parent 9a900c4 commit 9c48786
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:

with:
continue-on-error: true
update-build-system-cache: true

secrets:
NX_CLOUD_ACCESS_READ_WRITE_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_READ_WRITE_TOKEN }}

release:
name: Release
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ name: Test
description: Allow a workflow run to pass when this workflow fails
required: false
default: false
update-build-system-cache:
type: boolean
description: Update build system cache
required: false
default: false
secrets:
NX_CLOUD_ACCESS_READ_WRITE_TOKEN:
description: A read-write Nx Cloud access token
required: false

permissions: {}

Expand All @@ -22,6 +31,10 @@ jobs:
contents: read

steps:
- name: Set Nx Cloud access token
if: ${{ inputs.update-build-system-cache }}
run: echo "NX_CLOUD_ACCESS_TOKEN=${{ secrets.NX_CLOUD_ACCESS_READ_WRITE_TOKEN }}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

Expand All @@ -34,6 +47,9 @@ jobs:
- name: Install dependencies
run: npm ci && npm run install:dependencies

- name: Build
run: npm run build

- name: Test
run: npm run test

Expand Down

0 comments on commit 9c48786

Please sign in to comment.