Replaced Pico-W-Stub with micropython-stubs #361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 v18.15.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.15.x" | |
registry-url: "https://npm.pkg.github.com" | |
scope: "@paulober" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Python v3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- 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 |