Skip to content

Commit

Permalink
fix: release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Apr 21, 2024
1 parent ebf2f81 commit 6804d5f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -194,7 +194,7 @@ jobs:
- name: Run e2e tests
run: pnpm test:e2e

edge-release:
nightly-release:
if: |
github.event_name == 'push' &&
!contains(github.event.head_commit.message, '[skip-release]') &&
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
name: message-compiler
path: packages/message-compiler/dist

- name: Release edge version
run: ./scripts/release-edge.sh
- name: Release nightly version
run: ./scripts/release-nightly.sh
env:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
4 changes: 2 additions & 2 deletions docs/guide/installation.md
Expand Up @@ -69,12 +69,12 @@ You can also use a specific version/tag via URLs like <https://unpkg.com/vue-i18
You can also use a specific version/tag via URLs like <https://unpkg.com/[email protected]/dist/vue-i18n.esm-browser.js>
## Edge version
## Nightly version
Add the following line to the `dependencies` in `package.json`:
```json
"vue-i18n": "npm:@vue-i18n-edge"
"vue-i18n": "npm:@vue-i18n-nightly"
```
And then run `npm install` or `yarn install` or `pnpm install`.
2 changes: 1 addition & 1 deletion scripts/bump.ts
Expand Up @@ -137,7 +137,7 @@ async function main() {

for (const pkg of workspace.packages.filter(p => !p.data.private)) {
workspace.setVersion(pkg.data.name, release)
const newname = pkg.data.name + '-edge'
const newname = pkg.data.name + '-nightly'
workspace.rename(pkg.data.name, newname)
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/release-edge.sh → scripts/release-nightly.sh
Expand Up @@ -24,7 +24,7 @@ for PKG in packages/* ; do
fi
pushd $PKG
echo "⚡ Publishing $PKG with edge tag"
pnpm publish --access public --no-git-checks --tag edge
pnpm publish --access public --no-git-checks --tag nightly
popd
fi
done
2 changes: 1 addition & 1 deletion scripts/release.sh
Expand Up @@ -23,7 +23,7 @@ for PKG in packages/* ; do
continue
fi
pushd $PKG
TAG="latest"
TAG="next"
echo "⚡ Publishing $PKG with tag $TAG"
pnpm publish --access public --no-git-checks --tag $TAG
popd > /dev/null
Expand Down

0 comments on commit 6804d5f

Please sign in to comment.