Automate Linting with Husky and lint-staged to Prevent CI Failures (#… #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: create-yorkie-app-publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- packages/create-yorkie-app/** | |
- examples/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- name: Setup Node 🔧 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: 'pnpm' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install and Build 🔧 | |
run: | | |
cd packages/create-yorkie-app | |
pnpm install | |
pnpm build | |
- name: Publish 🚀 | |
run: cd packages/create-yorkie-app && pnpm publish --provenance | |
continue-on-error: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |