Skip to content

Commit

Permalink
Update release procedure to remove deprecated use (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
graduta authored Sep 5, 2023
2 parents 8184a14 + f16c687 commit e0452e5
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit e0452e5

Please sign in to comment.