Skip to content

Commit

Permalink
fix: github action bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ephrimlawrence committed Feb 26, 2024
1 parent 3249a8a commit 9b8fede
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/npm-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,25 @@ jobs:
git merge main
git push
# - name: Create Release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# body_path: CHANGELOG.md
# draft: false
# prerelease: false
- name: Build package
run: |
npm ci --legacy-peer-deps
npm run bundle
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Production Build"
files: |
LICENSE.txt
CHANGELOG.md
dist/*
- name: Publish package to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci --legacy-peer-deps
npm run bundle
npm publish

0 comments on commit 9b8fede

Please sign in to comment.