Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7d8cb686
Unverified
Commit
7d8cb686
authored
Nov 24, 2020
by
Arve Knudsen
Committed by
GitHub
Nov 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drone: Publish NPM packages after Storybook to avoid race condition (#29340)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent
22788d1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
25 deletions
+30
-25
.drone.yml
+26
-23
scripts/lib.star
+1
-0
scripts/release.star
+3
-2
No files found.
.drone.yml
View file @
7d8cb686
...
...
@@ -434,6 +434,7 @@ steps:
from_secret
:
gcp_key
depends_on
:
-
build-storybook
-
end-to-end-tests
-
name
:
build-frontend-docs
image
:
grafana/build-container:1.2.29
...
...
@@ -933,18 +934,6 @@ steps:
-
mysql-integration-tests
-
postgres-integration-tests
-
name
:
release-npm-packages
image
:
grafana/build-container:1.2.29
commands
:
-
./node_modules/.bin/lerna bootstrap
-
echo "//registry.npmjs.org/:_authToken=$${NPM_TOKEN}" >> ~/.npmrc
-
./scripts/build/release-packages.sh ${DRONE_TAG}
environment
:
NPM_TOKEN
:
from_secret
:
npm_token
depends_on
:
-
end-to-end-tests
-
name
:
publish-storybook
image
:
grafana/grafana-ci-deploy:1.2.7
commands
:
...
...
@@ -957,6 +946,19 @@ steps:
from_secret
:
gcp_key
depends_on
:
-
build-storybook
-
end-to-end-tests
-
name
:
release-npm-packages
image
:
grafana/build-container:1.2.29
commands
:
-
./node_modules/.bin/lerna bootstrap
-
echo "//registry.npmjs.org/:_authToken=$${NPM_TOKEN}" >> ~/.npmrc
-
./scripts/build/release-packages.sh ${DRONE_TAG}
environment
:
NPM_TOKEN
:
from_secret
:
npm_token
depends_on
:
-
publish-storybook
services
:
-
name
:
postgres
...
...
@@ -1699,17 +1701,6 @@ steps:
-
mysql-integration-tests
-
postgres-integration-tests
-
name
:
release-npm-packages
image
:
grafana/build-container:1.2.29
commands
:
-
./node_modules/.bin/lerna bootstrap
-
echo "//registry.npmjs.org/:_authToken=$${NPM_TOKEN}" >> ~/.npmrc
environment
:
NPM_TOKEN
:
from_secret
:
npm_token
depends_on
:
-
end-to-end-tests
-
name
:
publish-storybook
image
:
grafana/grafana-ci-deploy:1.2.7
commands
:
...
...
@@ -1719,6 +1710,18 @@ steps:
from_secret
:
gcp_key
depends_on
:
-
build-storybook
-
end-to-end-tests
-
name
:
release-npm-packages
image
:
grafana/build-container:1.2.29
commands
:
-
./node_modules/.bin/lerna bootstrap
-
echo "//registry.npmjs.org/:_authToken=$${NPM_TOKEN}" >> ~/.npmrc
environment
:
NPM_TOKEN
:
from_secret
:
npm_token
depends_on
:
-
publish-storybook
services
:
-
name
:
postgres
...
...
scripts/lib.star
View file @
7d8cb686
...
...
@@ -301,6 +301,7 @@ def publish_storybook_step(edition, ver_mode):
'image': publish_image,
'depends_on': [
'build-storybook',
'end-to-end-tests',
],
'environment': {
'GCP_KEY': {
...
...
scripts/release.star
View file @
7d8cb686
...
...
@@ -45,7 +45,8 @@ def release_npm_packages_step(edition, ver_mode):
'name': 'release-npm-packages',
'image': build_image,
'depends_on': [
'end-to-end-tests',
# Has to run after publish-storybook since this step cleans the files publish-storybook depends on
'publish-storybook',
],
'environment': {
'NPM_TOKEN': {
...
...
@@ -78,8 +79,8 @@ def get_steps(edition, ver_mode, publish):
if publish:
steps.extend([
upload_packages_step(edition=edition, ver_mode=ver_mode),
release_npm_packages_step(edition=edition, ver_mode=ver_mode),
publish_storybook_step(edition=edition, ver_mode=ver_mode),
release_npm_packages_step(edition=edition, ver_mode=ver_mode),
])
windows_steps = get_windows_steps(edition=edition, ver_mode=ver_mode)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment