-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
timeout-minutes: 10 | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
- name: Clean Install | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm test -- --run |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,27 @@ | ||
name: Publish release | ||
name: Publish Release | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: Build files | ||
publish: | ||
name: Publish to Firefox | ||
timeout-minutes: 10 | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16 | ||
- name: Use Node 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
cache: 'npm' | ||
- name: Install npm packages | ||
run: npm install | ||
- name: Test with vitest | ||
run: npm test | ||
- name: Build with Vite | ||
run: npm run build | ||
|
||
publish: | ||
name: Publish release | ||
runs-on: self-hosted | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
needs: build | ||
permissions: | ||
contents: read | ||
deployments: write | ||
- name: Clean Install | ||
run: npm ci | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
- name: Sign Firefox | ||
- name: Sign Firefox Extension | ||
run: npm run sign -- --api-secret ${{secrets.FIREFOX_TOKEN}} |