File tree Expand file tree Collapse file tree 5 files changed +88
-16
lines changed Expand file tree Collapse file tree 5 files changed +88
-16
lines changed Original file line number Diff line number Diff line change
1
+ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/typescript-node/.devcontainer/base.Dockerfile
2
+
3
+ # [Choice] Node.js version: 16, 14, 12
4
+ ARG VARIANT="16-buster"
5
+ FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
6
+
7
+ # [Optional] Uncomment this section to install additional OS packages.
8
+ # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9
+ # && apt-get -y install --no-install-recommends <your-package-list-here>
10
+
11
+ # [Optional] Uncomment if you want to install an additional version of node using nvm
12
+ # ARG EXTRA_NODE_VERSION=10
13
+ # RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
14
+
15
+ # [Optional] Uncomment if you want to install more global node packages
16
+ # RUN su node -c "npm install -g <your-package-list -here>"
Original file line number Diff line number Diff line change
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/typescript-node
3
+ {
4
+ "name" : " Node.js & TypeScript" ,
5
+ "build" : {
6
+ "dockerfile" : " Dockerfile" ,
7
+ // Update 'VARIANT' to pick a Node version: 12, 14, 16
8
+ "args" : {
9
+ "VARIANT" : " 16"
10
+ }
11
+ },
12
+ // Set *default* container specific settings.json values on container create.
13
+ "settings" : {},
14
+ // Add the IDs of extensions you want installed when the container is created.
15
+ "extensions" : [
16
+ " dbaeumer.vscode-eslint"
17
+ ],
18
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
19
+ // "forwardPorts": [],
20
+ // Use 'postCreateCommand' to run commands after the container is created.
21
+ // "postCreateCommand": "yarn install",
22
+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
23
+ // "remoteUser": "node"
24
+ }
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v2
13
+ with :
14
+ node-version : 14
15
+ registry-url : ' https://registry.npmjs.org'
16
+ - run : npm ci
17
+ - run : npm publish
18
+ env :
19
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
20
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ '*' ]
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ tests :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ node-version : [16.x]
20
+
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - name : Use Node.js ${{ matrix.node-version }}
24
+ uses : actions/setup-node@v2
25
+ with :
26
+ node-version : ${{ matrix.node-version }}
27
+ - run : npm ci
28
+ - run : npm test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments