-
Notifications
You must be signed in to change notification settings - Fork 130
/
shipit.nightly.yml
28 lines (27 loc) · 1.38 KB
/
shipit.nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ci:
require: []
dependencies:
override:
# We are making sure the deploys point to the NPM registry to prevent
# 404 issues like the one described in this comment:
# https://github.com/yarnpkg/yarn/issues/2935#issuecomment-355292633
- echo 'registry "https://registry.npmjs.org/"' | tee .npmrc .yarnrc
- curl -fsSL https://get.pnpm.io/install.sh | PNPM_VERSION=8.15.7 SHELL=`which bash` bash -
- bash -i -c "pnpm install"
deploy:
interval: 24h
max_commits: null
override:
- |-
bash -i -c 'echo -e "---\n'"'@shopify/cli'"': patch\n---" > .changeset/force-nightly-build.md'
- bash -i -c "npm_config_loglevel=verbose pnpm clean"
# Nightly snapshots can't be made from prerelease mode, so exit prerelease
# mode. But don't attempt to exit if we're in regular mode, when exiting
# will fail.
- bash -i -c "if [ -f '.changeset/pre.json' ]; then npm_config_loglevel=verbose pnpm changeset pre exit; fi"
- bash -i -c "npm_config_loglevel=verbose pnpm changeset version --snapshot nightly"
- bash -i -c "npm_config_loglevel=verbose pnpm changeset-manifests"
- bash -i -c "npm_config_loglevel=verbose NODE_ENV=production pnpm bundle"
- bash -i -c "npm_config_loglevel=verbose node bin/create-cli-duplicate-package.js"
- bash -i -c "npm_config_loglevel=verbose pnpm changeset publish --tag nightly"
- bash -i -c "./bin/package.js"