Skip to content

Commit

Permalink
Fixed GHA definition for failed builds, fixed publishing package (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
salceson authored Dec 19, 2023
1 parent f8025d7 commit 60c5c3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 60c5c3a

Please sign in to comment.