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

Update dependencies #310

Merged
merged 4 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading