@@ -24,19 +24,19 @@ permissions:
2424 contents : read
2525
2626jobs :
27- # validate:
28- # name: Validate
29- # uses: './.github/workflows/validate.yml'
30- # secrets: inherit
27+ validate :
28+ name : Validate
29+ uses : ' ./.github/workflows/validate.yml'
30+ secrets : inherit
3131
3232 publish :
3333 name : Publish
3434 runs-on : ubuntu-24.04
3535 permissions :
3636 contents : write # Push version changes
3737 id-token : write # OIDC for NPM publishing
38- # needs:
39- # - validate
38+ needs :
39+ - validate
4040 steps :
4141 - name : Checkout
4242 uses : actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
@@ -47,39 +47,25 @@ jobs:
4747 - name : Setup
4848 uses : ./.github/actions/setup
4949
50- - name : Update NPM
51- run : sudo npm i -g npm@latest
50+ - name : Configure Git
51+ run : |
52+ git config user.name 'github-actions[bot]'
53+ git config user.email 'github-actions[bot]@users.noreply.github.com'
54+ git config --global push.followTags true
5255
53- - name : Which NPM
56+ - name : Bump and Tag
5457 run : |
55- echo 'all'
56- which -a npm
57- echo 'selected'
58- which npm
58+ pnpm tsx scripts/bump-package-version.ts ${{ inputs.package }}
59+ git push
60+ git push --tags
5961
60- - name : Print NPM Version
62+ - name : Publish to NPM
63+ working-directory : packages/${{ inputs.package }}
6164 run : |
62- npm --version
63- /usr/local/bin/npm --version
65+ sudo npm i -g npm@latest
66+ /usr/local/bin/npm publish
6467
65- # Disabled until the right version of NPM is installed
66- # - name: Configure Git
67- # run: |
68- # git config user.name 'github-actions[bot]'
69- # git config user.email 'github-actions[bot]@users.noreply.github.com'
70- # git config --global push.followTags true
71- #
72- # - name: Bump and Tag
73- # run: |
74- # pnpm tsx scripts/bump-package-version.ts ${{ inputs.package }}
75- # git push
76- # git push --tags
77- #
78- # - name: Publish to NPM
79- # working-directory: packages/${{ inputs.package }}
80- # run: npm publish
81- #
82- # - name: Create GitHub release
83- # run: pnpm tsx scripts/create-github-release.ts ${{ inputs.package }}
84- # env:
85- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+ - name : Create GitHub release
69+ run : pnpm tsx scripts/create-github-release.ts ${{ inputs.package }}
70+ env :
71+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments