-
Notifications
You must be signed in to change notification settings - Fork 26
executable file
·52 lines (44 loc) · 1.2 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
47
48
49
50
51
52
name: Build MicroPico extension
on:
pull_request: ~
push:
branches-ignore:
- "dependabot/**"
paths-ignore:
- ".idea/**"
- ".vscode/**"
- "scripts/**"
- "**/*.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@v4
- name: Setup Node v20.9.x
uses: actions/setup-node@v4
with:
node-version: "20.9.x"
registry-url: "https://npm.pkg.github.com"
scope: "@paulober"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Python v3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install NPM Dependencies And Download Stubs
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 micropico-${{ github.sha }}.vsix