-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.16 KB
/
Copy pathrelease.yml
File metadata and controls
44 lines (35 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: release
on:
push:
branches:
- main
paths:
- packages/browser/manifest.json
jobs:
release:
runs-on: ubuntu-latest #通常はubuntu-latestにすることが多い、ubuntuはLinuxを用いたOSの一つで、ci/cd時にもよく使われる
steps:
- name: checkout repository
uses: actions/checkout@v7 #v3だと古い
- name: Use Node.js
uses: actions/setup-node@v7 #v4は2024年ごろの主流
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies #continuous intengrationではなくclean install
run: npm ci
- name: build package
run: npm run build
- name: run tests
run: npm test
- name: compress dist folder
run: node compress.js
- name: Submit
run: |
npx chrome-webstore-upload-cli@4 --source extension.zip
env:
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
PUBLISHER_ID: ${{ secrets.PUBLISHER_ID }}