From 324b0c021aa2bb5cba39a1f427551e0417b0fa20 Mon Sep 17 00:00:00 2001 From: Sahil Singh Rana Date: Wed, 3 Apr 2024 03:08:35 +0530 Subject: [PATCH] fix: dist not uploading --- .github/workflows/publish.yml | 20 ++++---------------- package.json | 2 +- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2f5b201..988a7ca 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -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}} @@ -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: @@ -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}} diff --git a/package.json b/package.json index 06d502a..d0cca1f 100644 --- a/package.json +++ b/package.json @@ -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",