-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from arconnectio/chore/adds-semantic-release-…
…and-submit chore: adds semantic-release and cws release
- Loading branch information
Showing
5 changed files
with
2,587 additions
and
56 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,23 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
cache: "yarn" | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build:chrome | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -7,21 +7,34 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache pnpm modules | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "20.x" | ||
cache: "yarn" | ||
- name: Cache yarn modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.1.0 | ||
run_install: true | ||
- name: Build and zip extension artifact | ||
run: pnpm build -- --zip | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Create .env file | ||
run: echo "PLASMO_PUBLIC_ONRAMPER_API_KEY=${{ secrets.ONRAMPER_API_KEY }}" >> .env | ||
|
||
- name: Modify package.json and icons for BETA | ||
if: github.ref == 'refs/heads/staging' | ||
run: | | ||
jq '.displayName = "ArConnect BETA"' package.json > temp.json | ||
mv temp.json package.json | ||
cp -rf assets-beta/* assets/ | ||
- name: Build and Package the extension into a zip artifact | ||
run: yarn build:chrome --zip | ||
- name: Browser Platform Publish | ||
uses: PlasmoHQ/bpp@v2 | ||
uses: PlasmoHQ/bpp@v3 | ||
with: | ||
keys: ${{ secrets.SUBMIT_KEYS }} | ||
keys: ${{ github.ref == 'refs/heads/production' && secrets.SUBMIT_KEYS_PRODUCTION || secrets.SUBMIT_KEYS_STAGING }} | ||
artifact: build/chrome-mv3-prod.zip |
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
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,24 @@ | ||
const config = { | ||
branches: ["production"], | ||
plugins: [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
npmPublish: false | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
assets: ["package.json"], | ||
message: | ||
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
} | ||
], | ||
"@semantic-release/github" | ||
] | ||
}; | ||
|
||
module.exports = config; |
Oops, something went wrong.