mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 13:43:41 +00:00
Adds nightly releases
This commit is contained in:
parent
dd227e2b64
commit
7f111ab95b
23
.github/workflows/nightly.yml
vendored
Normal file
23
.github/workflows/nightly.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: 'Nightly Releases'
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 2-6'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: 'Publish'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup npmrc
|
||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- run: yarn
|
||||
- run: ./scripts/pre-publish.sh --yes
|
||||
env:
|
||||
VERSION: '0.0.0-${{ github.sha }}'
|
||||
DIST_TAG: experimental
|
||||
@ -91,7 +91,7 @@
|
||||
"jest-circus": "26.6.3",
|
||||
"jest-cli": "26.6.3",
|
||||
"jest-watch-typeahead": "0.6.5",
|
||||
"lerna": "5.1.6",
|
||||
"lerna": "5.4.3",
|
||||
"lint-staged": "10.5.4",
|
||||
"lodash": "4.17.21",
|
||||
"npm-run-all": "4.1.5",
|
||||
|
||||
@ -5,15 +5,18 @@ cd "$(dirname "$0")/.."
|
||||
|
||||
set -e
|
||||
|
||||
version=""
|
||||
distTag=""
|
||||
version=$VERSION
|
||||
distTag=$DIST_TAG
|
||||
|
||||
echo "Please enter the version you want to publish"
|
||||
read -r version
|
||||
if [[ -z "$version" ]]; then
|
||||
echo "Please enter the version you want to publish"
|
||||
read -r version
|
||||
fi
|
||||
|
||||
|
||||
echo "Please enter the dist-tag you want to publish with"
|
||||
read -r distTag
|
||||
if [[ -z "$distTag" ]]; then
|
||||
echo "Please enter the dist-tag you want to publish with"
|
||||
read -r distTag
|
||||
fi
|
||||
|
||||
# publish packages
|
||||
./node_modules/.bin/lerna publish --no-push --no-git-tag-version --force-publish --exact "$version" --dist-tag "$distTag"
|
||||
./node_modules/.bin/lerna publish --no-push --no-git-tag-version --force-publish --exact "$version" --dist-tag "$distTag" $@
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user