1212 github-token :
1313 description : " The github token"
1414 required : true
15- npm-token :
16- description : " The npm deploy token"
17- required : true
1815
1916jobs :
2017 deploy-npm :
@@ -30,32 +27,34 @@ jobs:
3027 node-version : ${{ inputs.node-version }}
3128 registry-url : https://registry.npmjs.org
3229 cache : npm
30+ - name : Clear auth token for OIDC
31+ run : echo "NODE_AUTH_TOKEN=" >> $GITHUB_ENV
3332 - name : Install dependencies
3433 run : npm clean-install --prefer-offline --frozen-lockfile
3534 - name : Lint code
3635 run : npm run lint
3736 - name : Run unit tests
3837 run : npm run test:unit
39- - name : Update edge release alias
40- shell : bash
41- run : |
42- if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-EDGE)"; then
43- echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
44- fi
45- - name : Update stable release alias
46- shell : bash
47- if : github.event.release.prerelease == false
48- run : |
49- if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-STABLE)"; then
50- echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-STABLE
51- fi
52- - name : Prepare Release
53- uses : lando/prepare-release-action@v3
54- with :
55- lando-plugin : true
56- sync-token : ${{ secrets.github-token }}
57- sync-email : rtfm47@lando.dev
58- sync-username : rtfm-47
38+ # - name: Update edge release alias
39+ # shell: bash
40+ # run: |
41+ # if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-EDGE)"; then
42+ # echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
43+ # fi
44+ # - name: Update stable release alias
45+ # shell: bash
46+ # if: github.event.release.prerelease == false
47+ # run: |
48+ # if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-STABLE)"; then
49+ # echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-STABLE
50+ # fi
51+ # - name: Prepare Release
52+ # uses: lando/prepare-release-action@v3
53+ # with:
54+ # lando-plugin: true
55+ # sync-token: ${{ secrets.github-token }}
56+ # sync-email: rtfm47@lando.dev
57+ # sync-username: rtfm-47
5958 - name : Upgrade npm for trusted publishing
6059 run : npm install -g "npm@^11.5.1"
6160 - name : Publish to npm
6463 PACKAGE=$(node -p "require('./package.json').name")
6564
6665 if [ "${{ github.event.release.prerelease }}" == "false" ]; then
67- npm publish --access public --dry-run
68- npm publish --access public
66+ npm publish --access public --tag latest -- dry-run
67+ npm publish --access public --tag latest
6968 npm dist-tag add "$PACKAGE@$VERSION" edge
7069
7170 echo "::notice title=Published $VERSION to $PACKAGE::This is a stable release published to the default 'latest' npm tag"
@@ -78,16 +77,14 @@ jobs:
7877 echo "::notice title=Published $VERSION to $PACKAGE::This is a prerelease published to the 'edge' npm tag"
7978 echo "::notice title=Updated edge tag to $VERSION::The edge tag now points to $VERSION"
8079 fi
81- env :
82- NODE_AUTH_TOKEN : ${{ secrets.npm-token }}
83- - name : Update edge release alias on main
84- if : github.event.release.target_commitish == 'edge'
85- run : |
86- git clone https://github.com/lando/core.git core
87- cd core
88- git config user.name "rtfm-47"
89- git config user.email "rtfm47@lando.dev"
90- echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
91- git add .
92- git commit -m "Update edge release alias to ${{ github.event.release.tag_name }} triggered by @rtfm-47"
93- git push https://x-access-token:${{ secrets.github-token }}@github.com/lando/core.git main
80+ # - name: Update edge release alias on main
81+ # if: github.event.release.target_commitish == 'edge'
82+ # run: |
83+ # git clone https://github.com/lando/core.git core
84+ # cd core
85+ # git config user.name "rtfm-47"
86+ # git config user.email "rtfm47@lando.dev"
87+ # echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
88+ # git add .
89+ # git commit -m "Update edge release alias to ${{ github.event.release.tag_name }} triggered by @rtfm-47"
90+ # git push https://x-access-token:${{ secrets.github-token }}@github.com/lando/core.git main
0 commit comments