Skip to content

Commit

Permalink
chore: update GitHub Actions workflow for release process
Browse files Browse the repository at this point in the history
- Updated the release workflow to use the latest versions of actions (checkout@v4 and setup-node@v4).
- Changed Node.js version from 18 to 20.
- Added permissions for contents, actions, and checks to enhance workflow security.
- Ensured GITHUB_TOKEN is set in the environment for the release step.
  • Loading branch information
mamertofabian committed Nov 25, 2024
1 parent 0a02221 commit 55cdb5a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@ name: Create Release
on:
push:
tags:
- 'v*' # Trigger on version tags
- 'v*'

permissions:
contents: write
actions: read
checks: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand All @@ -31,13 +36,11 @@ jobs:
zip -r ../chrome-extension.zip .
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: chrome-extension.zip
draft: false
prerelease: false
generate_release_notes: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 55cdb5a

Please sign in to comment.