Skip to content

Commit

Permalink
chore: single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Jan 18, 2024
1 parent 0dbf852 commit 22a9ed6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 38 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build
on: [push]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm test

release:
name: Release
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
16 changes: 0 additions & 16 deletions .github/workflows/run-tests.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/semantic-release.yaml

This file was deleted.

0 comments on commit 22a9ed6

Please sign in to comment.