Skip to content

Commit

Permalink
migrated to latest release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed Dec 10, 2023
1 parent 48f992f commit a8f21f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
name: Generate build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: "12"
node-version: "16"
- run: yarn install
- run: yarn run build chrome
- run: yarn run build firefox
22 changes: 9 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,24 @@ on:
workflow_dispatch: null
jobs:
Version:
outputs:
created: ${{ steps.daily-version.outputs.created }}
version: ${{ steps.daily-version.outputs.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 20
- name: install
run: yarn ci || yarn install
- uses: fregante/daily-version-action@v1
- uses: fregante/daily-version-action@v2
name: Create tag if necessary
id: daily-version
- uses: fregante/release-with-changelog@v3
if: steps.daily-version.outputs.created
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude: true
- name: Create release
if: env.DAILY_VERSION_CREATED
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ env.DAILY_VERSION }}"
Submit:
needs: Version
if: github.event_name == 'workflow_dispatch' || needs.Version.outputs.created
if: github.event_name == 'workflow_dispatch' || env.DAILY_VERSION_CREATED
strategy:
fail-fast: false
matrix:
Expand All @@ -43,8 +40,7 @@ jobs:
- run: yarn run build ${{ matrix.command }}
- name: Update extension’s meta
run: >-
npx dot-json@1 $DIRECTORY/${{ matrix.command }}/manifest.json version ${{
needs.Version.outputs.version }}
npx dot-json@1 $DIRECTORY/${{ matrix.command }}/manifest.json version ${{ env.DAILY_VERSION }}
- name: Submit
run: |
case ${{ matrix.command }} in
Expand Down

0 comments on commit a8f21f5

Please sign in to comment.