Skip to content

Commit 9e14ecb

Browse files
committed
Test Github Packages
1 parent a7c8139 commit 9e14ecb

File tree

4 files changed

+41
-21
lines changed

4 files changed

+41
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: CI
22

33
on:
44
push:
@@ -28,19 +28,3 @@ jobs:
2828
run: |
2929
yarn install --ignore-scripts
3030
yarn build
31-
32-
publish:
33-
name: Publish Package
34-
needs: build
35-
runs-on: ubuntu-latest
36-
if: startsWith(github.ref, 'refs/tags/')
37-
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-node@v4
40-
with:
41-
node-version: '20.x'
42-
registry-url: 'https://registry.npmjs.org'
43-
- name: Publish
44-
run: yarn publish
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release-runner
8+
tags:
9+
- '*'
10+
pull_request:
11+
branches:
12+
- main
13+
- release-runner
14+
workflow_dispatch:
15+
16+
jobs:
17+
publish-github:
18+
name: Publish Package
19+
needs: build
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
packages: write
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: '20.x'
29+
registry-url: 'https://npm.pkg.github.com'
30+
- name: Install
31+
run: yarn install --ignore-scripts
32+
- name: Publish
33+
run: yarn publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
node_modules
3-
lib
3+
lib
4+
.npmrc

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "@eclipse-cdt-cloud/vscode-ui-components",
2+
"name": "@haydar-metin/vscode-ui-components",
33
"version": "0.0.1",
44
"description": "VS Code UI Components for React",
5-
"repository": "https://github.com/eclipse-cdt-cloud/vscode-ui-components",
5+
"repository": "https://github.com/haydar-metin/vscode-ui-components",
66
"license": "MIT",
7-
"qna": "https://github.com/eclipse-cdt-cloud/vscode-ui-components/issues",
7+
"qna": "https://github.com/haydar-metin/vscode-ui-components/issues",
88
"publisher": "eclipse-cdt",
99
"main": "./lib/index.js",
1010
"types": "./lib/index.d.ts",

0 commit comments

Comments
 (0)