refactor: Clean npm dependencies & disable postinstall scripts (#333) #38
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ⚠️ THIS WORKFLOW IS THE TRUSTED PUBLISHER CONFIGURED ON NPMJS.COM, DO NOT RENAME OR DELETE THIS FILE ⚠️ | |
| name: Publish NPM Package | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| pre-publish: | |
| uses: ./.github/workflows/main.yml | |
| determine-dist-tag: | |
| needs: pre-publish | |
| runs-on: ubuntu-latest | |
| outputs: | |
| TAG: ${{ steps.set-dist-tag.outputs.TAG }} | |
| steps: | |
| - name: Determine package dist tag | |
| id: set-dist-tag | |
| run: | | |
| if [[ "${GITHUB_REF#refs/tags/}" == *"-rc"* ]]; then | |
| echo "TAG=rc" >> $GITHUB_OUTPUT | |
| else | |
| echo "TAG=latest" >> $GITHUB_OUTPUT | |
| fi | |
| publish: | |
| needs: determine-dist-tag | |
| permissions: | |
| id-token: write # Required for OIDC | |
| packages: write | |
| contents: read | |
| uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected] | |
| with: | |
| tag: ${{ needs.determine-dist-tag.outputs.TAG }} |