-
Notifications
You must be signed in to change notification settings - Fork 26
executable file
·46 lines (39 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build MicroPico extension
on:
pull_request: ~
push:
branches-ignore:
- "dependabot/**"
paths-ignore:
- ".idea/**"
- ".vscode/**"
- "**/*.md"
- ".prettierrc.json"
- "LICENSE"
- ".editorconfig"
- ".eslintrc.json"
permissions:
contents: read
packages: read
jobs:
build:
name: "Build ubuntu-latest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16.17.x"
registry-url: "https://npm.pkg.github.com"
scope: "@paulober"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies
shell: bash
run: |
sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
npm ci --no-audit
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package Extension
run: npx @vscode/vsce package --no-yarn -o pico-w-go-${{ github.sha }}.vsix