v3.3.2 #45
Workflow file for this run
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: Publish to Marketplace | |
on: | |
release: | |
types: [published] | |
permissions: | |
# read is not enought for editing releases | |
contents: write | |
deployments: write | |
packages: write | |
jobs: | |
release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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: NPM install | |
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 }} | |
# not needed because of publish | |
- name: Package | |
run: npx @vscode/vsce package --no-yarn | |
- run: npx @vscode/vsce publish --no-yarn --target win32-x64 linux-x64 linux-arm64 darwin-x64 darwin-arm64 | |
name: Publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Visual Studio Code extension package | |
path: pico-w-go-*.vsix | |
- name: Upload artifact to release | |
#gh api --method POST -H "Accept: application/vnd.github+json" /repos/paulober/Pico-W-Go/releases/$RELEASE_ID/assets | |
run: gh release upload $RELEASE_TAG_NAME pico-w-go-*.vsix | |
env: | |
#RELEASE_ID: ${{ github.event.release.id }} | |
RELEASE_TAG_NAME: ${{ github.event.release.tag_name }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |