Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
ci: Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Apr 27, 2022
1 parent d0a9fc3 commit b5e7838
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/userscript-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish userscript
name: Publish Userscript

on:
push:
Expand All @@ -24,13 +24,14 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Run ESLint
- name: Lint
run: yarn lint:all

- name: Build userscript
run: yarn userscript:release

- uses: marvinpinto/action-automatic-releases@latest
- name: Pre-release userscript
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/userscript-qa.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
name: QA Build userscript
name: Pull Request

on:
push:
branches: [master]
pull_request:
branches: [master]

# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

jobs:
build:
qa:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -26,7 +21,7 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Run ESLint
- name: Lint
run: yarn lint:all

- name: Build userscript
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/userscript-tagged-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release Userscript

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v3

- name: "Use Node.js 18.x"
uses: actions/setup-node@master
with:
node-version: 18.x

- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint:all

- name: Build userscript
run: yarn userscript:release

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
packages/userscript/bundle/*

0 comments on commit b5e7838

Please sign in to comment.