Skip to content

Commit

Permalink
chore(workflow): publish to gpr
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRave authored Sep 30, 2021
1 parent f9686fb commit 8413f5f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# pull_request:
# branches: [ master ]

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

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

Expand All @@ -37,3 +35,10 @@ jobs:

- name: TS to JS
run: npm run build

- uses: actions/setup-node@v2
with:
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8413f5f

Please sign in to comment.