Skip to content

Commit

Permalink
ci: release
Browse files Browse the repository at this point in the history
  • Loading branch information
baozouai committed Jul 18, 2023
1 parent 2433959 commit 7c56f36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -37,6 +37,13 @@ jobs:
run: nci

- name: Release
run: nr release
run: |
if [[ ${{ github.ref }} == *refs/tags/*-beta* ]]; then
npm publish --tag beta
elif [[ ${{ github.ref }} == *refs/tags/*-alpha* ]]; then
npm publish --tag alpha
else
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 0 additions & 2 deletions src/history.ts
Expand Up @@ -84,11 +84,9 @@ export class History {
}
const isBlock = await this.canJump(params)
if (urlParams) {
console.log(urlParams)
if (!option.url.includes('?'))
option.url += '?'
option.url += `${URL_PARAMS_KEY}=${encodeURIComponent(JSON.stringify(urlParams))}`
console.log(option.url)
}
if (!isBlock) {
this.notifyListeners(params)
Expand Down

0 comments on commit 7c56f36

Please sign in to comment.