Skip to content

Commit

Permalink
chore(gh-action): implement npm build production
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Feb 21, 2024
1 parent 20f6330 commit fedd656
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- uses: preactjs/compressed-size-action@v2
with:
build-script: "build:production"
- name: Install dependencies
run: npm ci
- name: Build production app
run: npm run build:production

# Used to send a comment to the PR with the artifact url
- name: Save PR number
Expand Down

0 comments on commit fedd656

Please sign in to comment.