Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: CI

on:
push:
Expand Down Expand Up @@ -27,4 +27,4 @@ jobs:
GITHUB_TOKEN: ${{github.token}}
run: |
yarn install --ignore-scripts
yarn build
yarn build
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
workflow_dispatch:

jobs:
publish-github:
name: Publish Package
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: yarn install --ignore-scripts
- name: Publish
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
node_modules
lib
lib
.npmrc
.yarnrc
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"name": "@eclipse-cdt-cloud/vscode-ui-components",
"version": "0.0.1",
"description": "VS Code UI Components for React",
"description": "UI Components for Visual Studio Code Extensions",
"repository": "https://github.com/eclipse-cdt-cloud/vscode-ui-components",
"license": "MIT",
"qna": "https://github.com/eclipse-cdt-cloud/vscode-ui-components/issues",
"publisher": "eclipse-cdt",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib"
"lib",
"src",
"style"
],
"scripts": {
"build": "tsc && yarn lint",
"clean": "rimraf ./lib ./node_modules/.tmp",
"clean": "yarn clean:build ./node_modules",
"clean:build": "rimraf ./lib ./node_modules/.tmp",
"lint": "eslint .",
"prepare": "yarn clean && yarn build",
"prepare": "yarn clean:build && yarn build",
"watch": "tsc -w"
},
"dependencies": {
Expand All @@ -39,8 +42,6 @@
"@types/throttle-debounce": "5.0.2",
"@types/vscode": "^1.63.2",
"@types/vscode-webview": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint": "^9.21.0",
"eslint-plugin-header": "^3.1.1",
"globals": "^16.0.0",
Expand Down
Loading