Skip to content

Commit 8413f5f

Browse files
authored
chore(workflow): publish to gpr
1 parent f9686fb commit 8413f5f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@ name: CI
44

55
# Controls when the workflow will run
66
on:
7-
# Triggers the workflow on push or pull request events but only for the master branch
87
push:
98
branches: [ master ]
10-
pull_request:
11-
branches: [ master ]
9+
# pull_request:
10+
# branches: [ master ]
1211

1312
# Allows you to run this workflow manually from the Actions tab
1413
workflow_dispatch:
1514

1615
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1716
jobs:
18-
# This workflow contains a single job called "build"
19-
build:
17+
publishgpr:
2018
# The type of runner that the job will run on
2119
runs-on: ubuntu-latest
2220

@@ -37,3 +35,10 @@ jobs:
3735

3836
- name: TS to JS
3937
run: npm run build
38+
39+
- uses: actions/setup-node@v2
40+
with:
41+
registry-url: 'https://npm.pkg.github.com'
42+
- run: npm publish
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)