Skip to content

Commit 2a5f620

Browse files
authored
GitHub Actions update for build and release (#23)
1 parent b50a45f commit 2a5f620

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ on:
88
- main
99
workflow_dispatch:
1010

11+
permissions: read-all
12+
1113
jobs:
1214
build-extensions:
13-
runs-on: [self-hosted, linux]
14-
container: node:16.14.2-buster
15+
runs-on: ubuntu-latest
1516
env:
1617
NODE_OPTIONS: "--max-old-space-size=4096"
1718
steps:
1819
- name: Check out repository code
19-
uses: actions/checkout@v2
20+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 #v4
2021
- name: Build the package
2122
run: npm install && npm run package
2223
- name: Upload artifact
23-
uses: actions/upload-artifact@v2
24+
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4
2425
with:
2526
name: extension
2627
path: ./*.vsix

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ on:
33
push:
44
tags:
55
- "v*.*.*"
6-
76
jobs:
87
build-extensions:
9-
runs-on: [self-hosted, linux]
10-
container: node:14
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
1111
steps:
1212
- name: Check out repository code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 #v4
1414
- name: Build the package
15-
run: yarn install && yarn package
15+
run: npm install && npm run package
1616
- name: Release
17-
uses: softprops/action-gh-release@v1
17+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 #v0.1.15
1818
with:
1919
files: ./*.vsix

0 commit comments

Comments
 (0)