Skip to content

Commit

Permalink
[Task] #9 build action to use container
Browse files Browse the repository at this point in the history
to enable accessing localhost
  • Loading branch information
Type-Style authored Jan 11, 2024
1 parent e9e4ba5 commit 4945130
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,10 @@ on:
jobs:
build-node:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

container: node:20
steps:
- run: node --version
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run start
- run: npm run start --if-present

0 comments on commit 4945130

Please sign in to comment.