Repository navigation
Update filename format to remove brackets and bump version to 1.0.3 #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: Build plugin release | |
| on: | |
| push: | |
| # Sequence of patterns matched against refs/tags | |
| tags: | |
| - "*" # Trigger on any tag push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18.x" | |
| - name: Build plugin | |
| run: | | |
| npm install | |
| npm run build | |
| - name: Create Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| # Fetch all tags so gh CLI can find them | |
| git fetch --tags --force | |
| # Create a new GitHub release using the tag that triggered the workflow | |
| gh release create ${{ github.ref_name }} \ | |
| --title ${{ github.ref_name }} \ | |
| --generate-notes \ | |
| main.js manifest.json |