Skip to content

Commit

Permalink
chore: update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
taye authored and CI committed Mar 28, 2024
1 parent 23e1129 commit d3d4746
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 41 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches:
- main
- next

jobs:
test:
uses: ./.github/workflows/test.yml

publish-npm:
name: '📦 Build and Publish 🚀'
needs: [test]
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
cache: yarn
- name: ⚙ bootstrap
run: 'npm run bootstrap && git fetch --tags'
- name: 📦 build and publish 🚀
run: npx _release
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
pull_request:
workflow_dispatch:
workflow_call:

jobs:
test:
name: '🧪 Test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ianwalter/playwright-container@43940dfa7d309fe3569b9df407ae9e84dcbf2e7f
- name: ⚙ bootstrap
run: 'npm run bootstrap && npx _check_deps && npx _add_plugin_indexes'
- name: 📐 types
run: npx tsc -b -f
- name: 🔍 lint
run: npx _lint
- name: 🧪 tests
run: npm test
41 changes: 0 additions & 41 deletions .github/workflows/workflow.yml

This file was deleted.

0 comments on commit d3d4746

Please sign in to comment.