Deps: Update dependency @swc/core to v1.10.12 #1581
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚢 Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
has-tags: | |
name: 🏷️ Analyze Tags | |
runs-on: ubuntu-24.04 | |
outputs: | |
has-tag: ${{ steps.check-tag-exists.outputs.has-tag }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
# Even though this is set, shallow clones do not always retrieve all tags correctly | |
fetch-tags: true | |
# So we need to fetch full history, including all tags | |
fetch-depth: 0 | |
# ⚠️ This check works only if the tag is pushed alongside the commit | |
# Please, use `git push && git push --tags` or `git push --follow-tags` (works only for annonated tags) | |
- name: Check Tag On Commit | |
id: check-tag-exists | |
run: | | |
if [ -n "$(git tag --points-at HEAD)" ]; then | |
echo "has-tag=true" >> $GITHUB_OUTPUT | |
else | |
echo "has-tag=false" >> $GITHUB_OUTPUT | |
fi | |
publish: | |
name: 📦 Publish Packages | |
needs: has-tags | |
if: ${{ needs.has-tags.outputs.has-tag == 'true' }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup Node and Install Dependencies | |
uses: ./.github/actions/setup-install | |
- name: Build | |
run: yarn build | |
- name: Authenticate npm | |
run: ./bin/ci/npm-auth.sh | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish | |
run: make publish | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- name: Post Changelog | |
run: yarn post-changelog | |
env: | |
SLACK_CHANGELOG_WEBHOOK_URL: ${{ secrets.SLACK_CHANGELOG_WEBHOOK_URL }} |