Skip to content

Commit 4650d5f

Browse files
committed
chore(ci): change publish action
1 parent 8c1b1e0 commit 4650d5f

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Generate new release
22
on:
33
push:
44
tags:
5-
- 'v2*'
5+
- 'v3*'
66
jobs:
77
build:
88
runs-on: ubuntu-latest
@@ -30,7 +30,7 @@ jobs:
3030
- run: npm ci
3131
- run: npm run build
3232
- name: Publish package to NPM
33-
run: npm publish
33+
run: npm publish --tag alpha
3434
continue-on-error: true
3535
env:
3636
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -43,18 +43,18 @@ jobs:
4343
artifacts: './dist/zip/*.zip'
4444
bodyFile: 'RELEASE_BODY.md'
4545
token: ${{ secrets.GITHUB_TOKEN }}
46-
- name: Publish on gh-pages
47-
run: |
48-
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
49-
chown -R 1001:121 "/github/home/.npm"
50-
chown -R 1001:121 "/github/home/.bundle/"
51-
chmod -R 777 /github/home/.bundle/
52-
chmod -R 777 /usr/local/bundle/
53-
npm run documentation-deploy-to-gh-pages
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
- uses: italia/slack-notify-release-action@v0.2.0
57-
with:
58-
slack_token: ${{ secrets.SLACK_TOKEN }}
59-
channel_id: ${{ secrets.SLACK_CHANNEL }}
60-
project_name: Bootstrap Italia
46+
# - name: Publish on gh-pages
47+
# run: |
48+
# git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
49+
# chown -R 1001:121 "/github/home/.npm"
50+
# chown -R 1001:121 "/github/home/.bundle/"
51+
# chmod -R 777 /github/home/.bundle/
52+
# chmod -R 777 /usr/local/bundle/
53+
# npm run documentation-deploy-to-gh-pages
54+
# env:
55+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
# - uses: italia/slack-notify-release-action@v0.2.0
57+
# with:
58+
# slack_token: ${{ secrets.SLACK_TOKEN }}
59+
# channel_id: ${{ secrets.SLACK_CHANNEL }}
60+
# project_name: Bootstrap Italia

0 commit comments

Comments
 (0)