Skip to content

Commit

Permalink
Upload and download artifacts for pkg/ dir and publish pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
enjikaka committed Feb 17, 2025
1 parent 7620227 commit 6e2565b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ jobs:
deno-version: ${{ matrix.deno-version }}
- run: npm ci
- run: npm test
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: build
path: pkg
8 changes: 5 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: cd pkg
- run: npm publish
- uses: actions/download-artifact@v4
with:
name: build
path: pkg
- run: npm publish pkg
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 6e2565b

Please sign in to comment.