Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit e0452e5

Browse files
authored
Update release procedure to remove deprecated use (#200)
2 parents 8184a14 + f16c687 commit e0452e5

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
echo "Identified project: $PROJECT with version: $VERSION"
3030
echo "PROJECT=$PROJECT" >> $GITHUB_ENV
3131
echo "version=$VERSION" >> $GITHUB_OUTPUT
32-
# - run: npm publish
33-
# env:
34-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
32+
- run: npm publish
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
3535
upload-asset:
3636
runs-on: ubuntu-latest
3737
needs: deploy-npm-module
@@ -46,18 +46,12 @@ jobs:
4646
- name: Install production dependencies
4747
run: npm install --only=production
4848
- name: Create package tarball
49-
run: echo ::set-output name=tgz_name::$(npm pack)
49+
run: echo "tgz_name=$(npm pack)" >> $GITHUB_OUTPUT
5050
id: tgz
51-
- name: Upload tarball to GH release assets
52-
uses: actions/upload-release-asset@v1
53-
id: upload
51+
- name: Upload tarball to release assets via GH CLI
5452
env:
5553
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
with:
57-
upload_url: ${{ github.event.release.upload_url }}
58-
asset_content_type: application/tar+gzip
59-
asset_path: ./${{ steps.tgz.outputs.tgz_name }}
60-
asset_name: ${{ steps.tgz.outputs.tgz_name }}
54+
run: gh release upload @aliceo2/run-condition-table@${{ needs.deploy-npm-module.outputs.VERSION }} ${{ steps.tgz.outputs.tgz_name }}
6155
- name: Upload TARball to S3
6256
uses: awegrzyn/s3-put-action@v1
6357
with:

0 commit comments

Comments
 (0)