Skip to content

Commit

Permalink
logo, building vscode extension right
Browse files Browse the repository at this point in the history
  • Loading branch information
redaphid committed Jan 11, 2025
1 parent 6126ccc commit 9ad82b8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish npm package
name: Publish VS Code Extension
on:
workflow_dispatch:
push:
Expand All @@ -9,20 +9,24 @@ on:
- '.github/workflows/'

jobs:
build:
runs-on: ubuntu-latest
publish-extension:
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '21.x'
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: cd ./packages/comfyui-api-nodes && npm clean-install
- run: cd ./packages/comfyui-api-nodes && npm publish --access public
env:
# actions/setup-node uses this env variable to set the auth token in the .npmrc file
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Build and publish VS Code extension
- name: Install dependencies
run: cd ./vscode-extension && npm clean-install

- name: Build extension
run: cd ./vscode-extension && npm run build

- name: Publish to VS Code Marketplace
run: cd ./vscode-extension && npx vsce publish -p ${{ secrets.VSCE_PAT }}
Binary file modified favicon.ico
Binary file not shown.
Binary file added vscode-extension/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "paper-cranes-shader-syntax",
"name": "paper-cranes-shader-vscode-extension",
"version": "1.0.0",
"publisher": "hypnodroid",
"repository": "https://github.com/hypnodroid/paper-cranes",
"readme": "README.md",
"displayName": "Paper Cranes Shader Syntax",
"description": "Language support for Paper Cranes audio visualization shaders",
"main": "./out/extension.js",
"icon": "logo.png",
"main": "./out/index.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"package": "vsce package",
"build": "npm run compile && npm run package"
"build": "rm -rf out && npm run compile && npm run package"
},
"engines": {
"vscode": "^1.93.1"
Expand Down Expand Up @@ -40,9 +41,9 @@
"@vscode/vsce": "^3.x"
},
"files": [
"README.md",
"logo.png",
"out/**",
"syntaxes/**",
"language-configuration.json"
"language-configuration.json",
"LICENSE"
]
}
2 changes: 1 addition & 1 deletion vscode-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "ES2022",
"module": "nodenext",
"target": "ES2022",
"outDir": "out",
"rootDir": ".",
Expand Down

0 comments on commit 9ad82b8

Please sign in to comment.