Skip to content

Commit

Permalink
fixed ci releases
Browse files Browse the repository at this point in the history
  • Loading branch information
hridniev committed Apr 26, 2024
1 parent 19fa12a commit 004ef20
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
permissions: write-all

jobs:
# build:
# lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
Expand All @@ -21,8 +21,8 @@ jobs:
# - run: npm ci
# - run: npm run lint:ci

# release-ui:
# needs: build
# release-docs-ui:
# needs: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
Expand All @@ -35,8 +35,8 @@ jobs:
# - run: npm run sb:build
# - run: lftp -c "set ftp:ssl-force true; set ssl:verify-certificate false; open -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} ${{ secrets.FTP_HOSTNAME }}; mirror -Renv ./storybook-static ./www"

release-npm:
#needs: release-ui
publish-npm:
#needs: release-docs-ui
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -53,9 +53,9 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm ci
- run: npm run vueless:prepare
- run: npm run release
- run: npm run release:patch
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#RELEASE_IT_GITHUB_TOKEN: ${{ secrets.RELEASE_IT_GITHUB_TOKEN }}
10 changes: 4 additions & 6 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"git": {
"tag": true,
"tag": false,
"tagName": "v${version}",
"commitMessage": "Release v${version} / [skip ci]",
"commitMessage": "Release v${version} / [no ci]",
"requireUpstream": false,
"requireCleanWorkingDir": false
},
"github": {
"release": true,
"releaseName": "v${version}",
"assets": ["dist/*"]
"release": false
},
"npm": {
"publish": true,
"publish": false,
"publishPath": "./dist"
},
"plugins": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"lint": "eslint --ext .vue,.js,.ts --no-fix --ignore-path .eslintignore src/ .storybook/ tests/",
"lint:fix": "eslint --ext .vue,.js,.ts --fix --ignore-path .eslintignore src/ .storybook/ tests/",
"lint:ci": "eslint --ext .vue,.js,.ts --no-fix --ignore-path .eslintignore --max-warnings=0",
"release": "release-it patch --ci",
"release:production": "release-it minor --ci",
"release:production-major": "release-it major --ci",
"release:patch": "release-it patch --ci --npm.publish --git.tag --github.release",
"release:minor": "release-it minor --ci --npm.publish --git.tag --github.release",
"release:major": "release-it major --ci --npm.publish --git.tag --github.release",
"sb:dev-full": "STORYBOOK_VUELESS_ENV=1 STORYBOOK_FULL=1 storybook dev -p 6006 --no-open",
"sb:dev": "storybook dev -p 6006 --docs --no-open",
"sb:build": "STORYBOOK_VUELESS_ENV=1 storybook build --docs",
Expand Down

0 comments on commit 004ef20

Please sign in to comment.