Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github workflow and actions #19

Merged
merged 110 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 109 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
acba3ec
github workflow and actions
mercillo Jul 1, 2024
7b498dc
renamed folder
mercillo Jul 1, 2024
b587782
update node
mercillo Jul 2, 2024
7baa728
add package lock for build
mercillo Jul 2, 2024
1c772b2
force build for npm ci
mercillo Jul 2, 2024
329e2d3
command to build:chrome
mercillo Jul 2, 2024
d6254a5
modified action to use plasmo bpp
mercillo Jul 2, 2024
196ec69
removed cache step
mercillo Jul 2, 2024
5441dba
fixed secrets string
mercillo Jul 2, 2024
258e6da
changed name of secrets
mercillo Jul 2, 2024
9830215
removed old actions and workflows
mercillo Jul 2, 2024
e67b9d8
trying default config
mercillo Jul 2, 2024
1b7bfe0
tryinh default settings
mercillo Jul 2, 2024
43dbffb
build workflow to calla ction
mercillo Jul 2, 2024
ee17314
updated use
mercillo Jul 2, 2024
5d473e0
copy keys from workflow to action
mercillo Jul 2, 2024
4cf1724
workflow edit
mercillo Jul 2, 2024
7123137
added pnpm lock file
mercillo Jul 2, 2024
9a701a4
update Node Version
mercillo Jul 2, 2024
e9f616c
removed action.yml
mercillo Jul 2, 2024
9bcc82c
only build chrome
mercillo Jul 2, 2024
b29f2ad
trying nodev20
mercillo Jul 2, 2024
f50184e
trying Node 18
mercillo Jul 2, 2024
46bcb86
install sharp manually
mercillo Jul 2, 2024
21c3d61
add command to package
mercillo Jul 2, 2024
38c6e03
updated keys
mercillo Jul 2, 2024
e2bb1d8
version 4 test
mercillo Jul 2, 2024
52de8bc
testing auto
mercillo Jul 9, 2024
446abad
updated build order
mercillo Jul 9, 2024
e6adddd
removing release.yml to test pnpm actions
mercillo Jul 9, 2024
bae254d
update pnpm/action-setup to v4
mercillo Jul 9, 2024
4f190cd
add lockfile
mercillo Jul 9, 2024
9ead29b
Update CHANGELOG.md [skip ci]
mercillo Jul 9, 2024
2f02100
Update CHANGELOG.md [skip ci]
mercillo Jul 9, 2024
19b82b3
modified flow; get the release tag and then publish
mercillo Jul 9, 2024
2e236fc
removed duplicate job
mercillo Jul 9, 2024
dafec3f
changed order of build and release
mercillo Jul 9, 2024
a2ffa1f
build extension then get version
mercillo Jul 9, 2024
0592ae6
build sharp module
mercillo Jul 9, 2024
9146102
removed version;
mercillo Jul 9, 2024
1292f9f
testing using autofileversion
mercillo Jul 9, 2024
e379824
pnpm auto version
mercillo Jul 9, 2024
5b6b577
change commands to pnpm
mercillo Jul 9, 2024
a6dfd95
0.0.5
mercillo Jul 9, 2024
d8aeefa
echoing version
mercillo Jul 9, 2024
a5db294
trying without a script
mercillo Jul 9, 2024
7a1fce8
0.0.5
mercillo Jul 9, 2024
ebbd1bb
0.0.6
mercillo Jul 9, 2024
111c337
Bump version to: v0.0.5 [skip ci]
mercillo Jul 9, 2024
b961c0b
trying with no plugins
mercillo Jul 9, 2024
437c952
no plugins + running with scripts
mercillo Jul 9, 2024
805be5b
testing variable
mercillo Jul 9, 2024
5af898d
run command directly instead of through the script
mercillo Jul 9, 2024
d4c41ee
test to see if auto works with actions
mercillo Jul 9, 2024
17f44cc
trying auto version
mercillo Jul 10, 2024
e427c34
npm auto version
mercillo Jul 10, 2024
eb27891
pnpm auto version
mercillo Jul 10, 2024
76ad32b
git fetch tags before pnpm auto version
mercillo Jul 10, 2024
f5be142
retrying release script
mercillo Jul 10, 2024
dbd586e
Update CHANGELOG.md [skip ci]
mercillo Jul 10, 2024
1661e94
debugging git working directly not clean
mercillo Jul 10, 2024
133a8dc
Merge branch 'cicdChromeExtension' of github.com:player-ui/browser-de…
mercillo Jul 10, 2024
f0d2160
working directory not clean debug
mercillo Jul 10, 2024
49e55f4
git diff added
mercillo Jul 10, 2024
40b993d
debugging where files are changing
mercillo Jul 10, 2024
086ff46
frozen pnpm
mercillo Jul 10, 2024
a66fd3a
frozen lockfile
mercillo Jul 10, 2024
ea39fc5
frozen lockfile
mercillo Jul 10, 2024
f9a779b
check to see if actions/setup changes lockfile
mercillo Jul 10, 2024
a5b935f
more debugging
mercillo Jul 10, 2024
1bfbe03
removed pnpm/setup
mercillo Jul 10, 2024
d141551
cache pnpm
mercillo Jul 10, 2024
96bfc36
use setup-node@v4
mercillo Jul 10, 2024
f3f2b32
break up yml into build and release
mercillo Jul 11, 2024
3939e79
added pnpm to release step
mercillo Jul 11, 2024
b44a3a9
plasmo working in release step
mercillo Jul 11, 2024
b274fd2
removed --dry-run in auto release
mercillo Jul 11, 2024
760c7da
trying stash
mercillo Jul 11, 2024
7da8030
git not a command
mercillo Jul 11, 2024
5e7dec5
fetch tags
mercillo Jul 11, 2024
81d23c6
typo in tags
mercillo Jul 11, 2024
1e136e6
git tags
mercillo Jul 11, 2024
a624703
change to node 18 and add auto/git-tag
mercillo Jul 11, 2024
d3436b2
fix release.yml
mercillo Jul 11, 2024
3d0fe39
tag command
mercillo Jul 11, 2024
62db998
Update CHANGELOG.md [skip ci]
mercillo Jul 11, 2024
bcf0f4c
Bump version to: 0.0.5 [skip ci]
mercillo Jul 11, 2024
d2f788e
publish latest version and pull
mercillo Jul 11, 2024
7948c38
Merge branch 'cicdChromeExtension' of github.com:player-ui/browser-de…
mercillo Jul 11, 2024
7df8d3b
Update CHANGELOG.md [skip ci]
mercillo Jul 11, 2024
9eb214e
Bump version to: 0.0.6 [skip ci]
mercillo Jul 11, 2024
b9fcd4e
testing release flow
mercillo Jul 11, 2024
0d8186a
Update CHANGELOG.md [skip ci]
mercillo Jul 11, 2024
81cdda6
Bump version to: 0.0.7 [skip ci]
mercillo Jul 11, 2024
bb7abc1
testing with drrhy run and finding out where package is being built
mercillo Jul 11, 2024
705324c
Merge branch 'cicdChromeExtension' of github.com:player-ui/browser-de…
mercillo Jul 11, 2024
03ff5ef
Update CHANGELOG.md [skip ci]
mercillo Jul 11, 2024
b0344c5
Delete .env
mercillo Jul 11, 2024
07f67ad
removed push of tags
mercillo Jul 11, 2024
458ad64
Merge branch 'cicdChromeExtension' of github.com:player-ui/browser-de…
mercillo Jul 11, 2024
d3a6828
typo in name
mercillo Jul 11, 2024
58d8c3f
use GH_TOKEN in secrets
mercillo Jul 11, 2024
829ee44
trying previous working actions versions for plasmo/bpp
mercillo Jul 12, 2024
ba574e4
fixed actions/setup-node@3.4.1 and pnpm/action-setup@v2.2.4
mercillo Jul 12, 2024
a9e74d5
use pnpm/setup-4 and artifacts in bpp
mercillo Jul 12, 2024
c0c7b20
install sharp module
mercillo Jul 12, 2024
dfdc1db
modifying secrets
mercillo Jul 12, 2024
b50853d
updated refresh token and keys
mercillo Jul 12, 2024
f0c616d
modify to only release on main branch
mercillo Jul 12, 2024
fd34a52
update email and name
mercillo Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": ["git-tag"],
"owner": "player-ui",
"repo": "browser-devtools",
"name": "marky ercillo",
"email": "mercillo729@gmail.com"

}
83 changes: 83 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Release

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"

steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: install sharp module
run: pnpm add sharp

- name: fetch tags
run: git fetch --tags

- name: auto version
run: pnpm release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}


release:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-

- uses: pnpm/action-setup@v4
with:
version: latest
run_install: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: install sharp module
run: pnpm add sharp

- name: pull latest version
run: git pull --no-rebase

- name: Build the extension
run: pnpm build:chrome

- name: Package the extension into a zip artifact
run: pnpm package

- name: Browser Platform Publish
uses: PlasmoHQ/bpp@v3
with:
keys: ${{ secrets.SUBMIT_KEYS }}
artifact: build/chrome-mv3-prod.zip
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ yarn-error.log*

# local env files
.env*.local
.env
key.json

out/
build/
Expand Down
89 changes: 89 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# v0.0.8 (Thu Jul 11 2024)

#### 🐛 Bug Fix

- Merge branch 'cicdChromeExtension' of github.com:player-ui/browser-devtools into cicdChromeExtension ([@mercillo](https://github.com/mercillo))

#### Authors: 1

- Marlon "Marky" Ercillo ([@mercillo](https://github.com/mercillo))

---

# v0.0.7 (Thu Jul 11 2024)

#### 🐛 Bug Fix

- testing release flow ([@mercillo](https://github.com/mercillo))

#### Authors: 1

- Marlon "Marky" Ercillo ([@mercillo](https://github.com/mercillo))

---

# v0.0.6 (Thu Jul 11 2024)

#### 🐛 Bug Fix

- Merge branch 'cicdChromeExtension' of github.com:player-ui/browser-devtools into cicdChromeExtension ([@mercillo](https://github.com/mercillo))

#### Authors: 1

- Marlon "Marky" Ercillo ([@mercillo](https://github.com/mercillo))

---

# v0.0.5 (Thu Jul 11 2024)

#### 🐛 Bug Fix

- tag command ([@mercillo](https://github.com/mercillo))

#### Authors: 1

- Marlon "Marky" Ercillo ([@mercillo](https://github.com/mercillo))

---

# v0.0.5 (Wed Jul 10 2024)

#### 🐛 Bug Fix

- retrying release script ([@mercillo](https://github.com/mercillo))

#### Authors: 1

- Marlon "Marky" Ercillo ([@mercillo](https://github.com/mercillo))

---

# v0.0.5 (Tue Jul 09 2024)

#### 🐛 Bug Fix

- add lockfile ([@mercillo](https://github.com/mercillo))
- update pnpm/action-setup to v4 ([@mercillo](https://github.com/mercillo))
- removing release.yml to test pnpm actions ([@mercillo](https://github.com/mercillo))
- updated build order ([@mercillo](https://github.com/mercillo))
- testing auto ([@mercillo](https://github.com/mercillo))

#### Authors: 1

- Marlon "Marky" Ercillo ([@mercillo](https://github.com/mercillo))

---

# v0.0.5 (Tue Jul 09 2024)

#### 🐛 Bug Fix

- add lockfile ([@mercillo](https://github.com/mercillo))
- update pnpm/action-setup to v4 ([@mercillo](https://github.com/mercillo))
- removing release.yml to test pnpm actions ([@mercillo](https://github.com/mercillo))
- updated build order ([@mercillo](https://github.com/mercillo))
- testing auto ([@mercillo](https://github.com/mercillo))

#### Authors: 1

- Marlon "Marky" Ercillo ([@mercillo](https://github.com/mercillo))
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.5
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{
"name": "browser-devtools",
"displayName": "Player ui devtools",
"version": "0.0.1",
"version": "0.0.7",
"description": "Player UI devtools browser extension",
"author": "Rafael Campos <campos.rb@hotmail.com>",
"scripts": {
"dev": "plasmo dev",
"build:chrome": "plasmo build",
"build:firefox": "plasmo build --target=firefox-mv2",
"package": "plasmo package",
"inject:css": "scripts/inject-css.sh",
"build": "pnpm build:chrome && pnpm build:firefox && pnpm inject:css",
"test": "plasmo test",
"inject:chrome": "pnpm build:chrome && pnpm inject:css && web-ext run -t chromium --start-url \"https://example.com\" --source-dir ./build/chrome-mv3-prod",
"inject:firefox": "pnpm build:firefox && pnpm inject:css && pnpm web-ext run --start-url \"about:debugging#/runtime/this-firefox\" --source-dir ./build/firefox-mv2-prod"
"inject:firefox": "pnpm build:firefox && pnpm inject:css && pnpm web-ext run --start-url \"about:debugging#/runtime/this-firefox\" --source-dir ./build/firefox-mv2-prod",
"release": "./scripts/release.sh"
},
"dependencies": {
"@auto-it/chrome": "^11.1.6",
"@auto-it/git-tag": "^11.1.6",
"@auto-it/version-file": "^11.1.6",
"@plasmohq/storage": "^1.10.0",
"@player-tools/devtools-client": "0.7.0-next.2",
"@player-tools/devtools-types": "0.7.0-next.2",
Expand All @@ -36,6 +41,9 @@
"@types/react": "18.2.37",
"@types/react-dom": "18.2.15",
"@types/webextension-polyfill": "^0.10.7",
"auto": "^11.1.6",
"install": "^0.13.0",
"npm": "^10.8.1",
"prettier": "3.0.3",
"typescript": "5.2.2",
"web-ext": "^7.9.0",
Expand Down
Loading