Skip to content

Commit

Permalink
Merge pull request #4 from codex-team/yarn-migrate
Browse files Browse the repository at this point in the history
chore(dx): migrate to yarn
  • Loading branch information
neSpecc authored Oct 13, 2024
2 parents c438fcf + 7032d67 commit f95f9a2
Show file tree
Hide file tree
Showing 6 changed files with 7,064 additions and 13,685 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ jobs:
node-version: 20

- name: Install dependencies
run: npm install
run: yarn install

- name: Lint
run: npm run lint
run: yarn run lint

test:
runs-on: ubuntu-latest
# test:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
# steps:
# - uses: actions/checkout@v4
# - run: corepack enable
# - uses: actions/setup-node@v4
# with:
# node-version: 20

- name: Install dependencies
run: npm install
# - name: Install dependencies
# run: yarn install

- name: Playground prepare
run: npm run dev:prepare
# - name: Playground prepare
# run: yarn run dev:prepare

- name: Test
run: npm run test
# - name: Test
# run: yarn run test
13 changes: 13 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish package to NPM

on:
push:
branches:
- master

jobs:
publish-and-notify:
uses: codex-team/github-workflows/.github/workflows/npm-publish-and-notify-reusable.yml@main
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT: ${{ secrets.CODEX_BOT_WEBHOOK_HAWK }}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,26 @@ export default defineNuxtConfig({

```bash
# Install dependencies
npm install
yarn

# Generate type stubs
npm run dev:prepare
yarn run dev:prepare

# Develop with the playground
npm run dev
yarn run dev

# Build the playground
npm run dev:build
yarn run dev:build

# Run ESLint
npm run lint
yarn run lint

# Run Vitest
npm run test
npm run test:watch
yarn run test
yarn run test:watch

# Release new version
npm run release
yarn run release
```

</details>
Expand Down
Loading

0 comments on commit f95f9a2

Please sign in to comment.