Skip to content

Commit

Permalink
Try simpler build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhermoso committed Feb 26, 2024
1 parent e354999 commit cfae6f5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Publish package to GitHub Packages
on:
release:
types: [created]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -15,19 +16,14 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@kedyou'
- name: Build and publish
run: |
npm version --allow-same-version --no-git-tag-version ${{ github.event.release.tag_name }}
npm ci
npm publish
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cfae6f5

Please sign in to comment.