2020 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2121
2222jobs :
23- main :
23+ push :
24+ name : 🔖 Release packages
2425 runs-on : ubuntu-latest
2526 steps :
2627 - name : 🦖 Cancel Previous Runs
@@ -33,34 +34,14 @@ jobs:
3334
3435 - name : 🏃 Run Node and NPM setup
3536 uses : ./.github/actions/setup-project
36- # - name: Checkout the main branch
37- # uses: actions/checkout@v4
38- # # Only a single commit is fetched by default
39- # # we need full repo history with tags, so we are setting fetch-depth: 0
40- # with:
41- # fetch-depth: 0
42- # # We need to pass Personal Access Token in order
43- # # to force triggering on-publish workflow
44- # token: ${{ secrets.PAT }}
45-
46- # - name: Setup node
47- # uses: actions/setup-node@v3
48- # with:
49- # node-version: 20
50- # cache: 'npm'
51-
52- # - name: Install packages
53- # run: npm ci
5437
55- - name : Sets the base and head SHAs for the nx affected commands in CI
38+ - name : 💬 Sets the base and head SHAs for the nx affected commands in CI
5639 uses : nrwl/nx-set-shas@v4
5740
58- - name : Build affected libs
41+ - name : 🔄 Build affected libs
5942 run : npx nx affected -t build
6043
61- # We need to set github email and name as nx release will
62- # create new tag with version and create new github release
63- - name : Run nx release
44+ - name : 🔖 Run nx release
6445 id : release
6546 run : |
6647 git config --global user.email "some@user.dev"
7354 echo "has_changes=true" >> $GITHUB_OUTPUT
7455 fi
7556
76- - name : Update lock file
57+ - name : 🔐 Update lock file
7758 if : ${{ steps.release.outputs.has_changes == 'true' }}
7859 run : |
7960 pnpm install --no-frozen-lockfile
0 commit comments