Skip to content

Commit

Permalink
update release workflow for yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
briangann committed Apr 9, 2024
1 parent d7c4fe6 commit 7c46cc5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,25 @@ jobs:
# GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }}
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
check-latest: true
cache: yarn
cache-dependency-path: yarn.lock

- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Install dependencies
run: npm ci
run: yarn install --immutable

- name: Build and test frontend
run: npm run build
run: yarn build

- name: Check for backend
id: check-for-backend
Expand All @@ -41,14 +43,14 @@ jobs:
- name: Test backend
if: steps.check-for-backend.outputs.has-backend == 'true'
uses: magefile/mage-action@v2
uses: magefile/mage-action@v3
with:
version: latest
args: coverage

- name: Build backend
if: steps.check-for-backend.outputs.has-backend == 'true'
uses: magefile/mage-action@v2
uses: magefile/mage-action@v3
with:
version: latest
args: buildAll
Expand Down

0 comments on commit 7c46cc5

Please sign in to comment.