Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: '🔒 setup'
name: '🛠️ Install'
description: 'Setup Node, pnpm & install dependencies'

inputs:
token:
description: Auth Token for GitHub Packages

runs:
using: 'composite'
steps:
Expand All @@ -15,6 +19,12 @@ runs:
node-version-file: package.json
cache: pnpm

- name: GitHub Packages Auth
shell: bash
if: ${{ inputs.token != '' }}
run: |
echo "//npm.pkg.github.com/:_authToken=${{ inputs.token }}" >> ~/.npmrc

- name: Install dependencies
shell: bash
run: pnpm install
run: pnpm install --frozen-lockfile
2 changes: 2 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:

- name: Install
uses: ./.github/actions/install
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: pnpm build
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

- name: Install
uses: ./.github/actions/install
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Lint
run: pnpm lint
Expand All @@ -35,6 +37,8 @@ jobs:

- name: Install
uses: ./.github/actions/install
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: pnpm build
Expand All @@ -46,6 +50,8 @@ jobs:

- name: Install
uses: ./.github/actions/install
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build package/playground
uses: docker/build-push-action@v5
Expand Down