diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 05c018b..fb4b0d4 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -9,11 +9,12 @@ on: jobs: publish-npm: - needs: build runs-on: ubuntu-latest - permissions: - contents: read - packages: write + + strategy: + matrix: + node-version: [14.x] + steps: - name: Checkout uses: actions/checkout@v3 @@ -22,6 +23,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 14 + registry-url: https://registry.npmjs.org/ - uses: pnpm/action-setup@v2.0.1 name: Install pnpm @@ -43,7 +45,10 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Run CI + run: pnpm run ci + - name: Run Publish - run: pnpm publish + run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index 0cbdfc6..499cc25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rx-http-kit", - "version": "1.0.10", + "version": "1.0.11", "description": "HTTP Client Development Kit based by rxjs", "main": "lib/index.js", "module": "lib/index.es.js", @@ -20,7 +20,7 @@ "test:mocha": "mocha 'test/dist/*.spec.js'", "test": "pnpm run test:server && pnpm run test:mocha", "types": "tsc -p ./tsconfig.types.json", - "prepublishOnly": "pnpm run rollup && pnpm run types" + "prepublishOnly": "pnpm run types" }, "repository": { "type": "git",