From bb014ddea261631199c17d313378b69b2c133e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Lygre?= Date: Mon, 18 Oct 2021 12:56:59 +0200 Subject: [PATCH] chore: update node to v.16 (#458) - Update node to v.16 - Remove unused Dockerfile Fixes the failing build, caused by newer package-lock.json version i previous commit --- .github/workflows/github-pages.yml | 5 ++++- .github/workflows/npmpublish.yml | 6 +++--- .github/workflows/unittests.yml | 6 +++--- storybook.Dockerfile | 19 ------------------- 4 files changed, 10 insertions(+), 26 deletions(-) delete mode 100644 storybook.Dockerfile diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index e04ae550..c14309c4 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -13,6 +13,9 @@ jobs: with: submodules: true persist-credentials: false + - uses: actions/setup-node@v2 + with: + node-version: '16' - name: Info run: echo "Running on branch $(basename ${{ github.ref }})" @@ -24,7 +27,7 @@ jobs: run: mkdir docs_out - name: Build documentation # only if this was triggered from latest - if: github.ref == 'refs/heads/latest' + if: github.ref == 'refs/heads/latest' run: | npm run docs npm run postdocs diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 8f3d387f..2177c002 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -9,10 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: 12 - registry-url: https://registry.npmjs.org/ + node-version: '16' + registry-url: 'https://registry.npmjs.org/' - run: npm ci - run: npm run pub env: diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 8b8d9d3b..0c1037ae 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -8,12 +8,12 @@ jobs: strategy: matrix: - node-version: [12.x] + node-version: [16.x] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - name: npm install, build, and test diff --git a/storybook.Dockerfile b/storybook.Dockerfile deleted file mode 100644 index 640c55d9..00000000 --- a/storybook.Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM node:10-alpine AS BUILD - -WORKDIR /project - -RUN npm version $VERSION - -COPY . /project - -RUN npm i -RUN npm run build -RUN npm run build-storybook - -#NGINX -FROM nginx:1-alpine -WORKDIR /app -COPY nginx.conf /etc/nginx/conf.d/default.conf -COPY --from=build /project/storybook-static/ /app/storybook - -EXPOSE 80