Skip to content

Commit

Permalink
chore: re-add release code, upgrade semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
danguilherme committed Apr 30, 2024
1 parent d5a4a94 commit 99f5623
Show file tree
Hide file tree
Showing 3 changed files with 2,237 additions and 3,834 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,29 @@ jobs:
with:
name: dist
path: dist
- name: 🚀 Semantic Release
id: release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG == 'true' && 'semantic-release:*' || '' }}
with:
semantic_version: 23.0.8 # semantic-release version, same as in package.json
- name: 📝 Add release notes to build summary
if: steps.release.outputs.new_release_published == 'true'
run: |
NEW_RELEASE_VERSION=${{ steps.release.outputs.new_release_version }}
echo "# New package version published: \`v$NEW_RELEASE_VERSION\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "yarn add uno@$NEW_RELEASE_VERSION" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
yarn exec ts-node build/append-to-file.ts $GITHUB_STEP_SUMMARY <<"END_OF_CONTENT"
${{ steps.release.outputs.new_release_notes }}
END_OF_CONTENT
- name: ∅ No new package published
if: steps.release.outputs.new_release_published == 'false'
run: |
echo "# No new version published" >> $GITHUB_STEP_SUMMARY
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@
"@babel/preset-env": "^7.8.6",
"@babel/preset-modules": "^0.1.3",
"@babel/preset-typescript": "^7.8.3",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.1",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/events": "^3.0.0",
"@types/jest": "^24.9.1",
"babel-loader": "^8.0.6",
"chai": "^4.2.0",
"jest": "^29.7.0",
"node-polyfill-webpack-plugin": "^3.0.0",
"semantic-release": "^17.0.0",
"semantic-release": "^23.0.8",
"ts-jest": "^29.1.2",
"tslint": "^6.1.3",
"typedoc": "^0.25.13",
Expand Down
Loading

0 comments on commit 99f5623

Please sign in to comment.