Skip to content

Commit

Permalink
Update package & CI (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong authored Jan 20, 2025
1 parent 4410757 commit e1bcd19
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: npm-publish
on:
release:
types: [published]
workflow_dispatch:

env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand All @@ -28,28 +29,16 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Build Contracts
working-directory: web/packages/contracts
run: |
pnpm build
- name: Build Contract Types
working-directory: web/packages/contract-types
run: |
pnpm install
pnpm typechain
pnpm build
- name: Build API
working-directory: web/packages/api
- name: Build
working-directory: web
run: |
pnpm install
pnpm build
Expand All @@ -68,4 +57,3 @@ jobs:
working-directory: web/packages/api
run: |
pnpm publish --no-git-checks --access public
4 changes: 2 additions & 2 deletions web/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"scripts": {
"build": "cp -R '../../../contracts/src' '../../../contracts/out' '../../../contracts/test' ."
},
"devDependencies": { },
"dependencies": { }
"devDependencies": {},
"dependencies": {}
}
1 change: 1 addition & 0 deletions web/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
packages:
- "packages/test"
- "packages/api"
- "packages/contracts"
- "packages/contract-types"
- "packages/test-helpers"
- "packages/operations"

0 comments on commit e1bcd19

Please sign in to comment.