Feat(common): Remove support for web-twig package from the servers #1725
This file contains hidden or 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 | |
- name: Check Tag On Commit | |
id: check-tag-exists | |
uses: ./.github/actions/has-tags | |
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_NOTIFICATIONS_WEBHOOK_URL }} |