Skip to content

Commit

Permalink
updated release workflow to use local job (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
inkbeard authored Oct 21, 2024
1 parent debea7f commit fc476a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/install-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
types: [opened, synchronize, reopened]

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
install_dependencies:
name: Install dependencies
Expand Down
33 changes: 4 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,11 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Prepare job
uses: ./.github/actions/prepare-job

- name: Create Release Pull Request
uses: changesets/action@v1
Expand Down

0 comments on commit fc476a0

Please sign in to comment.