Skip to content

Commit

Permalink
add workflow, fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
genox committed Jan 18, 2024
1 parent 6e5d780 commit d5789c8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- run: corepack enable
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Versions
run: yarn -v && node -v && npm -v
- name: Install
uses: Borales/[email protected]
with:
cmd: install
run: yarn install
- name: Build
uses: Borales/[email protected]
with:
cmd: build
run: yarn build
- name: Publish package to NPM 🚀
run: npm publish --access public
env:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/push-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Commit to main
on:
push: # Trigger the workflow on push events but only for the main branch
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Versions
run: yarn -v && node -v && npm -v
- name: Install
run: yarn install
- name: Build
run: yarn build

0 comments on commit d5789c8

Please sign in to comment.