Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
try to fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceharrison1984 committed Apr 18, 2024
1 parent 3feca0f commit 1150031
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -47,7 +48,7 @@ jobs:
run: npm run build

- name: Upload vite-wrangler-spa package artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vite-wrangler-spa
path: ./dist
Expand All @@ -65,29 +66,30 @@ jobs:
- name: Update NPM
run: npm install -g npm
- name: Download vite-wrangler-spa artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vite-wrangler-spa
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
- run: ls -lha
# - name: Publish to NPM
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

## finalizing the release doesn't depend on Docs deploying because it fails frequently
finalize-release:
runs-on: ubuntu-latest
needs: publish-package
steps:
## Checkout so we can apply the new tag
- uses: actions/checkout@v3
with:
fetch-depth: '0'

## Documentation: https://github.com/marvinpinto/action-automatic-releases
- uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
prerelease: false
# finalize-release:
# runs-on: ubuntu-latest
# needs: publish-package
# steps:
# ## Checkout so we can apply the new tag
# - uses: actions/checkout@v3
# with:
# fetch-depth: '0'

# ## Documentation: https://github.com/marvinpinto/action-automatic-releases
# - uses: 'marvinpinto/action-automatic-releases@latest'
# with:
# repo_token: '${{ secrets.GITHUB_TOKEN }}'
# prerelease: false

# deploy-pages:
# environment:
Expand Down

0 comments on commit 1150031

Please sign in to comment.