Skip to content

Commit

Permalink
fix: release ci issues (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak authored Sep 11, 2024
1 parent 9442b7a commit a8fe62f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 25 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
pull_request:
branches: [main]
jobs:
# node builds all packages
build-node:
build-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -15,9 +14,7 @@ jobs:
version: 9
- shell: bash
run: |
cd packages/node
pnpm install
pnpm build
pnpm install --no-frozen-lockfile
build-example-canvas:
runs-on: ubuntu-latest
Expand All @@ -28,10 +25,8 @@ jobs:
version: 9
- shell: bash
run: |
pnpm install
cd packages/node
pnpm build
cd ../../examples/canvas
pnpm install --no-frozen-lockfile
cd examples/canvas
pnpm build
build-example-chat:
Expand All @@ -43,8 +38,6 @@ jobs:
version: 9
- shell: bash
run: |
pnpm install
cd packages/node
pnpm build
cd ../../examples/chat
pnpm install --no-frozen-lockfile
cd examples/chat
pnpm build
9 changes: 5 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- run: |
cd packages/node && yarn && yarn build
cd ../.. && yarn docs
pnpm install --no-frozen-lockfile
yarn docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: yarn install --frozen-lockfile
- run: npm publish --provenance --workspace packages --access public
- run: pnpm install --frozen-lockfile
- run: pnpm publish --provenance --workspace packages --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -24,11 +27,14 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
- run: yarn install --frozen-lockfile
- run: npm publish --provenance --workspace packages --access public
- run: pnpm install --frozen-lockfile
- run: pnpm publish --provenance --workspace packages --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ jobs:
version: 9
- shell: bash
run: |
pnpm install
cd packages/object && pnpm build
cd ../.. && pnpm test
pnpm install --no-frozen-lockfile
pnpm test
8 changes: 7 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"ignore": ["**/dist/*", "**/docs/*", "**/*_pb.ts", "**/bundle/*"]
"ignore": [
"**/dist/*",
"**/docs/*",
"**/*_pb.ts",
"**/bundle/*",
"**/package.json"
]
},
"linter": {
"enabled": true,
Expand Down

0 comments on commit a8fe62f

Please sign in to comment.