-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
351 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
name: Release mapgl-gltf | ||
|
||
on: | ||
release: | ||
types: [created] | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
|
||
release-mapgl-gltf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
release-mapgl-gltf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm run build | ||
- run: echo $GITHUB_REF_NAME | ||
- run: | | ||
if [[ $GITHUB_REF_NAME == v1.* ]]; then | ||
npm publish --access public --tag ver.1 | ||
else | ||
npm publish --access public | ||
fi | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Release v2 | ||
|
||
**All changes have to be made on «master» branch.** | ||
|
||
1. Update the package version by running `npm version patch|minor`. This command returns a new package version. Let assume it's 2.3.4 | ||
1. Push changes to github and merge them to the «master» branch | ||
1. Go to https://github.com/2gis/mapgl-gltf/releases/new | ||
1. Click the «Choose tag» button and create a new tag according to the version in package.json, for example v2.3.4 | ||
1. Make sure the release target is the «master» branch | ||
1. Paste the release tag into the «Release title» field, for example v2.3.4 | ||
1. Add a release description | ||
1. Click the «Publish release» button | ||
1. Go to https://github.com/2gis/mapgl-gltf/actions and wait for completing the release workflow | ||
|
||
## Release v1 | ||
|
||
**All changes have to be made on «plugin-v1» branch.** | ||
|
||
1. Update the package version by running `npm version patch|minor`. This command returns a new package version. Let assume it's 1.2.3 | ||
1. Push changes to github and merge them to the «plugin-v1» branch | ||
1. Go to https://github.com/2gis/mapgl-gltf/releases/new | ||
1. Click the «Choose tag» button and create a new tag according to the version in package.json, for example v1.2.3 | ||
1. Make sure the release target is the «plugin-v1» branch | ||
1. Paste the release tag into the «Release title» field, for example v1.2.3 | ||
1. Add a release description | ||
1. Unset the «Set as the latest release» checkbox because version 1 release can't be the latest | ||
1. Click the «Publish release» button | ||
1. Go to https://github.com/2gis/mapgl-gltf/actions and wait for completing the release workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.