Skip to content

Commit

Permalink
build: add next tag to local releases
Browse files Browse the repository at this point in the history
  • Loading branch information
progikusok committed Jan 19, 2023
1 parent 971fad3 commit 73ffb4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-package-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ jobs:
IS_DEV_PUBLISH: true

- name: Publish
run: cd dist && npm publish --access public
run: cd dist && npm publish --access public --tag dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Package Stable
name: Release Package Next

on:
push:
Expand Down Expand Up @@ -85,4 +85,4 @@ jobs:
GIT_COMMIT_HASH: ${{github.sha}}

- name: Publish
run: cd dist && npm publish --access public
run: cd dist && npm publish --access public --tag next
2 changes: 1 addition & 1 deletion do-prepublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function createPackageJson(): Promise<void> {
throw new Error('Package.json version is invalid');
}

const metadataSuffix: string = IS_DEV_PUBLISH ? 'dev' : 'stable';
const metadataSuffix: string = IS_DEV_PUBLISH ? 'dev' : 'next';
const updatedProperVersion: string = isNil(GIT_COMMIT_HASH)
? VERSION
: `${VERSION}-${metadataSuffix}.sha.${GIT_COMMIT_HASH.slice(0, 8)}`;
Expand Down

0 comments on commit 73ffb4b

Please sign in to comment.