Skip to content

Commit

Permalink
create action
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-iachini committed Mar 22, 2024
1 parent 8798e89 commit 31c19fb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 26 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/action/action.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build

runs:
using: "composite"
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn

- name: Install Dependencies
run: yarn --immutable

- name: Build
run: yarn build

- name: Test
run: yarn node --experimental-vm-modules $(yarn bin jest)
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
ci:
- uses: actions/checkout@v3
- name: Build
uses: ./.github/workflows/action
uses: ./.github/workflows/build
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build
uses: ./.github/workflows/action
uses: ./.github/workflows/build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand Down

0 comments on commit 31c19fb

Please sign in to comment.