diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c734a33..e3ee186 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,4 +32,7 @@ jobs: - run: npx nx affected -t lint test build - run: git config --global user.email "igor@katsuba.dev" - run: git config --global user.name "IKatsuba" - - run: npx nx release --skip-publish + - run: npx nx release + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} + NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 1b002da..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Publish - -on: - release: - types: - - created - -jobs: - test: - name: Publish - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write # needed for provenance data generation - timeout-minutes: 10 - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: https://registry.npmjs.org/ - - - name: Install dependencies - run: npm install - shell: bash - - - name: Print Environment Info - run: npx nx report - shell: bash - - - run: git config --global user.email "igor@katsuba.dev" - - run: git config --global user.name "IKatsuba" - - - name: Publish packages - run: npx nx release publish - shell: bash - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} - NPM_CONFIG_PROVENANCE: true