Skip to content

Commit

Permalink
feat: use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
skypesky committed Jun 17, 2024
1 parent 9814576 commit 6e86451
Show file tree
Hide file tree
Showing 4 changed files with 2,097 additions and 1,661 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/publish-beta-to-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ jobs:
with:
fetch-depth: 1

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache: "npm"
registry-url: "https://registry.npmjs.org"

- name: Install deps
run: pnpm install
run: npm install

- name: Build
run: pnpm build
run: npm run build

- name: Publish to NPM
run: |
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,18 @@ jobs:
with:
fetch-depth: 1

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache: "npm"
registry-url: "https://registry.npmjs.org"

- name: Install deps
run: pnpm install
run: npm install

- name: Build
run: pnpm build
run: npm run build

- name: Publish to NPM
run: npm publish
Expand Down
Loading

0 comments on commit 6e86451

Please sign in to comment.