diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5539c2a..4e90f24 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,18 +5,7 @@ on: types: [published] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - name: Install dependencies - run: npm ci - - name: Build - run: npm run build - publish: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -27,6 +16,6 @@ jobs: - name: Install dependencies run: npm ci - name: Publish - run: npm run publish --dry-run + run: npm publish --dry-run env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/package.json b/package.json index 058c493..029330f 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,17 @@ "description": "Simple, customizable state manager for modals.", "main": "dist/index.js", "types": "dist/index.d.ts", - "files": ["dist/**/*"], + "files": [ + "dist/**/*" + ], "scripts": { "build": "tsc", "prepack": "tsc", - "test": "jest", - "publish": "npm publish " + "test": "jest" }, "repository": { "type": "git", - "url": "https://github.com/neeppy/react-modal-manager" + "url": "git+https://github.com/neeppy/react-modal-manager.git" }, "keywords": [ "react", @@ -39,4 +40,4 @@ "ts-jest": "^29.1.1", "typescript": "^5.2.2" } -} +} \ No newline at end of file