-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07aba4b
commit ef5630f
Showing
2 changed files
with
56 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Install" | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install | ||
run: pnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,23 @@ | ||
# name: 'Tokens' | ||
# on: | ||
# push: | ||
# branches: | ||
# - '*' | ||
# paths: | ||
# - 'tokens/**' | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install and Build | ||
# run: | | ||
# pnpm install | ||
# pnpm run build:tokens | ||
# - name: Commit files | ||
# uses: stefanzweifel/git-auto-commit-action@v4 | ||
# with: | ||
# commit_message: 'CI: update tokens' | ||
# commit_user_name: GitHub Actions | ||
# commit_user_email: [email protected] | ||
name: 'Tokens' | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
# paths: | ||
# - 'tokens/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install | ||
uses: ./install.yml | ||
- name: Build | ||
run: pnpm run build:tokens | ||
- name: Commit files | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'CI: update tokens' | ||
commit_user_name: GitHub Actions | ||
commit_user_email: [email protected] |