Update build.yml
This commit is contained in:
parent
ce21e9f9f6
commit
ef74bc2c85
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -14,14 +14,25 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Set up Node.js 16.20.2
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16.20.2
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install && npm install --save core-js@2
|
||||
|
||||
- name: Build
|
||||
run: npm run build:prod
|
||||
|
||||
- name: Extract project version from package.json
|
||||
run: |
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
echo "PROJECT_VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user