Skip to content

Commit

Permalink
Merge pull request #6 from Automattic/fix/gh-actions
Browse files Browse the repository at this point in the history
Update the relevant workflow
  • Loading branch information
wellyshen authored Jun 7, 2024
2 parents c3dfc1f + 4365df7 commit 95dd137
Show file tree
Hide file tree
Showing 36 changed files with 25,449 additions and 17,505 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/hovercards-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web/packages/hovercards
strategy:
matrix:
node-version: [20]
Expand All @@ -23,20 +20,19 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'npm'

- name: Install dependencies
working-directory: web/packages/hovercards
run: yarn
run: npm install

- name: Type check
working-directory: web/packages/hovercards
run: yarn type-check
run: npm run type-check

- name: Lint
working-directory: web/packages/hovercards
run: yarn lint
run: npm run lint

- name: Build
working-directory: web/packages/hovercards
run: yarn build
run: npm run build
7 changes: 3 additions & 4 deletions .github/workflows/hovercards-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache: 'npm'

- name: Install dependencies
working-directory: web/packages/hovercards
run: yarn
run: npm install

- name: Initialize Git user
working-directory: web/packages/hovercards
Expand All @@ -49,7 +48,7 @@ jobs:

- name: Release
working-directory: web/packages/hovercards
run: yarn release ${{ github.event.inputs.increment }} --ci
run: npx release-it ${{ github.event.inputs.increment }} --ci
env:
GITHUB_TOKEN: ${{ secrets.GRAVATAR_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules
*.local
.npmrc

# Logs
logs
Expand Down
Loading

0 comments on commit 95dd137

Please sign in to comment.