Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
enymawse committed Oct 22, 2024
1 parent 362a1f0 commit d83c9c0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Build and Release

on:
push:
branch: "main"
branches:
- "main"
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,7 +21,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Adjust the version according to your project requirements
node-version: "20"

- name: Install dependencies
run: npm ci
Expand All @@ -36,6 +40,6 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/stasherr.user.js # Path to the file in the dist folder
asset_path: ./dist/stasherr.user.js
asset_name: stasherr.user.js
asset_content_type: application/javascript

0 comments on commit d83c9c0

Please sign in to comment.