Skip to content

Commit

Permalink
chore: ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfeldpausch committed Oct 17, 2023
1 parent 07aba4b commit ef5630f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 33 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/install.yml
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
56 changes: 23 additions & 33 deletions .github/workflows/tokens.yml
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]

0 comments on commit ef5630f

Please sign in to comment.