Skip to content

Commit

Permalink
Oppgrader pakker og audit force fix for sikkerhetsoppdateringer (#292)
Browse files Browse the repository at this point in the history
* Oppgrader pakker og audit force fix for sikkerhetsoppdateringer

* Tar i bruk node-version lts/* (for øyeblikket 18.x)

* Legg til permissions for bygging i deploy.yml
  • Loading branch information
Mikaila94 authored Oct 2, 2023
1 parent 8800bf5 commit 4e37174
Show file tree
Hide file tree
Showing 5 changed files with 1,294 additions and 911 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: 'lts/*'
cache: "npm"
registry-url: "https://npm.pkg.github.com"

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/setup-node@v3
if: steps.node_modules.outputs.cache-hit != 'true'
with:
node-version: "16.x"
node-version: 'lts/*'
cache: "npm"
registry-url: "https://npm.pkg.github.com"

Expand All @@ -60,11 +60,13 @@ jobs:
build:
needs: [ install ]
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "lts/*"

- name: Cache node_modules
uses: actions/cache@v3
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- Runner ----
FROM node:16-alpine AS runtime
FROM node:lts-bullseye-slim AS runtime
WORKDIR /home/node/app

ENV PORT=3000
Expand Down
Loading

0 comments on commit 4e37174

Please sign in to comment.