Skip to content

ci: Grant contents write permission to the build job. #2

ci: Grant contents write permission to the build job.

ci: Grant contents write permission to the build job. #2

Workflow file for this run

name: Package Extension
on:
push:
tags:
- 'v*' # Run when a version tag is pushed (e.g., v1.0.0)
workflow_dispatch: # Allow manual trigger
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build and Package
run: npm run ship
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
builds/rove-chrome-*.zip
builds/rove-firefox-*.zip
builds/rove-source-*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}