Skip to content

Commit

Permalink
update ga publish
Browse files Browse the repository at this point in the history
  • Loading branch information
heliomarpm committed Oct 23, 2023
1 parent a5c960b commit f8b9afb
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
- name: Setup Node NPM
uses: actions/setup-node@v3
with:
node-version: '>=16.8.0'
Expand All @@ -29,13 +29,10 @@ jobs:
- name: Install dependencies
run: npm ci

# - name: Tests
# run: npm test

- name: Build
run: npm run build

- name: Publish
- name: Publish NPM
run: |
cp README.md dist/ion-calendar
cd dist/ion-calendar
Expand All @@ -48,3 +45,25 @@ jobs:
# with:
# token: ${{ secrets.NPM_TOKEN }}
# strategy: all


- name: Setup Node GPR
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: |
cp README.md dist/ion-calendar
cd dist/ion-calendar
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit f8b9afb

Please sign in to comment.