diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 522b16f..a1b4027 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -40,7 +40,7 @@ jobs: run: yarn build - name: Release if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} - run: yarn release + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Record test results @@ -52,7 +52,7 @@ jobs: reporter: jest-junit - name: Notify Google Chat uses: evidenceprime/google-chat-notifications@master - if: ${{ github.event_name == 'push' }} + if: ${{ always() && github.event_name == 'push' }} with: title: "PostCSS Remove declaration plugin" subtitle: ${{ github.event.head_commit.message }} diff --git a/package.json b/package.json index 6a4bbd9..7d5dba3 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "lint": "eslint *.ts test/*.ts", "prebuild": "rm -rf index.js index.d.ts", "prettier": "prettier *.ts test/*.ts --write", - "publish": "yarn build && npm publish", "test": "jest", "test:ci": "jest --ci --reporters=default --reporters=jest-junit", "test:watch": "jest --watch"