Skip to content

Commit

Permalink
chore: migrate to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Aug 27, 2024
1 parent f34ae1b commit dd197d9
Show file tree
Hide file tree
Showing 9 changed files with 11,431 additions and 6,296 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,12 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9.0.6
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: install deps
run: pnpm install
- name: build sdk
run: pnpm build
- name: lint
run: pnpm lint
- name: check ts
run: pnpm lint:ts
- name: test
run: pnpm test:all
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm run lint:ts
- run: npm run test:all

11 changes: 3 additions & 8 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
with:
ref: main
- uses: pnpm/action-setup@v2
if: ${{ steps.release.outputs.release_created }}
with:
version: latest
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 20
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm install
- run: npm install
if: ${{ steps.release.outputs.release_created }}
- run: pnpm build
- run: npm run build
if: ${{ steps.release.outputs.release_created }}
- id: auth
if: ${{ steps.release.outputs.release_created }}
Expand All @@ -54,6 +49,6 @@ jobs:
NPM_TOKEN:discord-app-city-prd/embedded-app-sdk-deploy-token
- name: Publish 🚀
if: ${{ steps.release.outputs.release_created }}
run: pnpm publish --access public --no-git-checks
run: npm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ steps.secrets.outputs.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm lint-staged
npx lint-staged
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "Launch via pnpm",
"name": "Launch via npm",
"request": "launch",
"runtimeArgs": ["test"],
"runtimeExecutable": "pnpm",
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
}
Expand Down
Loading

0 comments on commit dd197d9

Please sign in to comment.