Skip to content

Commit

Permalink
Update dependencies (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jun 7, 2024
1 parent b1bf40c commit 318d183
Show file tree
Hide file tree
Showing 7 changed files with 3,318 additions and 2,162 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: npm
- name: install
run: npm ci || npm install
Expand All @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: npm
- name: install
run: npm ci || npm install
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: npm
- run: npm ci
- name: Test and build
Expand All @@ -30,7 +30,7 @@ jobs:
run: npx dot-json@1 "$DIRECTORY/manifest.json" version "$DAILY_VERSION"
- name: Ready for "submit" jobs
if: env.DAILY_VERSION_CREATED
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ${{ env.DIRECTORY }}
- name: Create release
Expand All @@ -42,32 +42,31 @@ jobs:
FILENAME="$PROJECT_NAME-$DAILY_VERSION-for-local-testing-only.zip"
zip -r "$FILENAME" ./*
gh release create "$DAILY_VERSION" --generate-notes "$FILENAME"
Submit:
needs: Version
Chrome:
if: needs.Version.outputs.created
strategy:
fail-fast: false
matrix:
command:
- Firefox
- Chrome
environment: ${{ matrix.command }}
needs: Version
name: Submit (Chrome)
environment: Chrome
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Submit to Mozilla
if: matrix.command == 'Firefox'
- uses: actions/download-artifact@v4
- run: npx chrome-webstore-upload-cli@3
working-directory: artifact
run: npx web-ext-submit@7
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
- name: Submit to Google
if: matrix.command == 'Chrome'
working-directory: artifact
run: npx chrome-webstore-upload-cli@2 upload --auto-publish
env:
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
Firefox:
if: needs.Version.outputs.created
needs: Version
name: Submit (Firefox)
environment: Firefox
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- run: npx web-ext@8 sign --channel listed
working-directory: artifact
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

Loading

0 comments on commit 318d183

Please sign in to comment.