feat(exec): prevent misinterpreting paths as options (#11) #3
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
| name: CD | |
| on: | |
| push: | |
| tags: ['v[0-9]+.[0-9]+.[0-9]+', 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+'] | |
| jobs: | |
| create-release-note: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| name: Create release note | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set nodejs | |
| uses: actions/setup-node@v4 | |
| with: | |
| registry-url: https://registry.npmjs.org/ | |
| node-version: lts/* | |
| - name: Generate release note | |
| run: | | |
| if ${{ contains(github.ref_name, 'canary') }}; then | |
| npx changelogithub@latest --prerelease | |
| else | |
| npx changelogithub@latest | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| publish-assets: | |
| permissions: | |
| contents: write | |
| needs: create-release-note | |
| name: Publish assets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Packaging assets | |
| run: | | |
| base_name="insight-${{ github.ref_name }}" | |
| tar czf "$base_name.tar.gz" --transform "s,^,$base_name/," -- dist/ LICENSE | |
| - name: Releasing assets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: insight-${{ github.ref_name }}.tar.gz |