Skip to content

Commit

Permalink
ci: add more branches for releases (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceanis authored Apr 3, 2023
1 parent ab1bf7e commit 37fae8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on:
push:
branches:
- 'master'
- 'alpha'
- 'main'
- 'next'
jobs:
build-test-publish:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -16,20 +19,21 @@ jobs:
- name: "Setup node with cache"
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
cache: 'yarn'

- run: yarn install --frozen-lockfile
- run: yarn run format
- run: yarn run build

- name: "Setup git coordinates"
run: |
git config user.name uport-automation-bot
git config user.email [email protected]
git config user.name ${{secrets.GH_USER}}
git config user.email ${{secrets.GH_EMAIL}}
- name: "Run semantic-release"
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/alpha'
run: yarn run release
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Build and Test NODE
on: [pull_request, workflow_dispatch, push]
jobs:
build-test:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Setup node with cache"
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
cache: yarn

- run: yarn install --frozen-lockfile
Expand Down

0 comments on commit 37fae8d

Please sign in to comment.