Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
Signed-off-by: usiiasirrush <[email protected]>
  • Loading branch information
UsiDiamond authored Aug 15, 2023
1 parent 4b36425 commit 2f89f65
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,47 @@ on:
jobs:
build:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
- name: Build Using 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
test:
- runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
- needs: build
- steps:
- uses: actions/setup-node@v3
- run: npm test
archive:
- runs-on: ubuntu-latest
- needs: test
- strategy:
matrix:
node-version: [20.x]
- steps:
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: nib-static-site
path: |
public
public/neurodiversity-main/
create-release:
- runs-on: ubuntu-latest
- name: Create Release
- steps:
id: create_release
uses: ncipollo/release-action@v1
with:
tag: "nightly-tag-${{ steps.date.outputs.date }}"
artifacts: "release.zip"
prerelease: true

0 comments on commit 2f89f65

Please sign in to comment.