File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 sudo apt-get install -y git-core
3939 git --version
4040 echo "Path is ... $PATH"
41- git config --global user.email "dishantlangayan@gmail.com"
42- git config --global user.name "dishantlangayan"
41+ git config --global user.email ${{ secrets.GH_EMAIL }}
42+ git config --global user.name ${{ secrets.GH_USERNAME }}
4343 - name : Generate oclif README
4444 if : ${{ steps.version-check.outputs.skipped == 'false' }}
4545 id : oclif-readme
5959 name : ${{ steps.version-check.outputs.tag }}
6060 tag : ${{ steps.version-check.outputs.tag }}
6161 commit : ${{ github.ref_name }}
62- token : ${{ secrets.GITHUB_TOKEN }}
62+ token : ${{ secrets.GH_PAT }}
6363 skipIfReleaseExists : true
Original file line number Diff line number Diff line change @@ -2,7 +2,18 @@ name: publish
22
33on :
44 release :
5- types : [released]
5+ types : [published]
6+ # support manual release in case something goes wrong and needs to be repeated or tested
7+ workflow_dispatch :
8+ inputs :
9+ tag :
10+ description : tag that needs to publish
11+ type : string
12+ required : true
13+
14+ permissions :
15+ id-token : write # Required for OIDC
16+ contents : read
617
718jobs :
819 publish :
1627 - run : npm install
1728 - run : npm run build
1829 - run : npm run prepack
19- - uses : JS-DevTools/npm-publish@v3
20- with :
21- token : ${{ secrets.NPM_TOKEN }}
30+ - run : npm publish --access public
2231 - run : npm run postpack
You can’t perform that action at this time.
0 commit comments