From f16c687f7d647fe246ee2db214e55956a2839342 Mon Sep 17 00:00:00 2001 From: George Raduta Date: Mon, 4 Sep 2023 13:57:42 +0200 Subject: [PATCH] Update release procedure to remove deprecated use --- .github/workflows/release.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0701e5de4..8160113bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,9 @@ jobs: echo "Identified project: $PROJECT with version: $VERSION" echo "PROJECT=$PROJECT" >> $GITHUB_ENV echo "version=$VERSION" >> $GITHUB_OUTPUT - # - run: npm publish - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }} upload-asset: runs-on: ubuntu-latest needs: deploy-npm-module @@ -46,18 +46,12 @@ jobs: - name: Install production dependencies run: npm install --only=production - name: Create package tarball - run: echo ::set-output name=tgz_name::$(npm pack) + run: echo "tgz_name=$(npm pack)" >> $GITHUB_OUTPUT id: tgz - - name: Upload tarball to GH release assets - uses: actions/upload-release-asset@v1 - id: upload + - name: Upload tarball to release assets via GH CLI env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_content_type: application/tar+gzip - asset_path: ./${{ steps.tgz.outputs.tgz_name }} - asset_name: ${{ steps.tgz.outputs.tgz_name }} + run: gh release upload @aliceo2/run-condition-table@${{ needs.deploy-npm-module.outputs.VERSION }} ${{ steps.tgz.outputs.tgz_name }} - name: Upload TARball to S3 uses: awegrzyn/s3-put-action@v1 with: