Skip to content

Commit

Permalink
run publish gpr
Browse files Browse the repository at this point in the history
  • Loading branch information
heliomarpm committed Oct 13, 2023
1 parent e61901e commit 8d8b4df
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
name: Github Package

on:
release:
types: [created]
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '21 12 * * 5'

jobs:
# build:
Expand All @@ -27,23 +32,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: "@heliomarpm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Publish GPR
run: |
cd dist/ion-calendar
npm publish
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 8d8b4df

Please sign in to comment.