Skip to content

Commit

Permalink
fix: dist not uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilsinghrana committed Apr 2, 2024
1 parent 54a043c commit 324b0c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,11 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- uses: actions/upload-artifact@v3
with:
name: app-build
path: dist

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: app-build
path: dist
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
Expand All @@ -43,6 +32,8 @@ jobs:
node-version: 18
cache: "pnpm"
registry-url: https://registry.npmjs.org/
- name: Build
run: pnpm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand All @@ -51,11 +42,6 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: app-build
path: dist
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
Expand All @@ -65,6 +51,8 @@ jobs:
node-version: 18
cache: "pnpm"
registry-url: "https://npm.pkg.github.com"
- name: Build
run: pnpm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GIT_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/sahilsinghrana/tictactoe.js.git"
},
"version": "0.0.4-1",
"version": "0.0.4-2",
"description": "Tic Tac toe",
"homepage": "https://github.com/sahilsinghrana/tictactoe.js",
"main": "dist/index.js",
Expand Down

0 comments on commit 324b0c0

Please sign in to comment.