Skip to content

Commit d2af857

Browse files
fix: commented not working CI/CD
1 parent 6fcc4ff commit d2af857

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

.github/workflows/deploy.yaml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
on:
2-
push:
3-
branches: [main]
1+
# on:
2+
# push:
3+
# branches: [main]
44

5-
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- name: Checkout repository
10-
uses: actions/checkout@v3
5+
# jobs:
6+
# build:
7+
# runs-on: ubuntu-latest
8+
# steps:
9+
# - name: Checkout repository
10+
# uses: actions/checkout@v3
1111

12-
- name: Setup Node
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: "lts/*"
16-
registry-url: "https://registry.npmjs.org"
12+
# - name: Setup Node
13+
# uses: actions/setup-node@v3
14+
# with:
15+
# node-version: "lts/*"
16+
# registry-url: "https://registry.npmjs.org"
1717

18-
- name: Install dependencies
19-
run: yarn --ignore-engines
18+
# - name: Install dependencies
19+
# run: yarn --ignore-engines
2020

21-
#- name: Run tests
22-
# run: yarn run test
21+
#- name: Run tests
22+
# run: yarn run test
2323

24-
- name: Build project
25-
run: yarn run build #--target npm
24+
# - name: Build project
25+
# run: yarn run build #--target npm
2626

27-
- name: Create zip lib
28-
uses: vimtor/action-zip@v1
29-
with:
30-
files: library/
31-
dest: pyscript-react.zip
27+
# - name: Create zip lib
28+
# uses: vimtor/action-zip@v1
29+
# with:
30+
# files: library/
31+
# dest: pyscript-react.zip
3232

33-
- name: Get current tag
34-
run: |
35-
echo "current_tag=v`grep version package.json | sed 's/.*"version": "\(.*\)".*/\1/'`" >> $GITHUB_ENV
33+
# - name: Get current tag
34+
# run: |
35+
# echo "current_tag=v`grep version package.json | sed 's/.*"version": "\(.*\)".*/\1/'`" >> $GITHUB_ENV
3636

37-
- name: Create new tag
38-
uses: rickstaa/action-create-tag@v1
39-
id: "tag_create"
40-
with:
41-
tag: "${{ env.current_tag }}"
42-
tag_exists_error: true
43-
message: "Latest release"
37+
# - name: Create new tag
38+
# uses: rickstaa/action-create-tag@v1
39+
# id: "tag_create"
40+
# with:
41+
# tag: "${{ env.current_tag }}"
42+
# tag_exists_error: true
43+
# message: "Latest release"
4444

45-
- name: Create GitHub realese
46-
uses: "marvinpinto/action-automatic-releases@latest"
47-
with:
48-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
49-
automatic_release_tag: "${{ env.current_tag }}"
50-
prerelease: false
51-
files: |
52-
LICENSE
53-
pyscript-react.zip
45+
# - name: Create GitHub realese
46+
# uses: "marvinpinto/action-automatic-releases@latest"
47+
# with:
48+
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
49+
# automatic_release_tag: "${{ env.current_tag }}"
50+
# prerelease: false
51+
# files: |
52+
# LICENSE
53+
# pyscript-react.zip
5454

55-
- name: Publish to npm 🚀
56-
run: |
57-
cd library
58-
yarn publish
59-
cd ..
60-
for dir in library/*; do
61-
if [ -d "$dir" ]; then
62-
cd "$dir"
63-
yarn publish
64-
cd ../../
65-
fi
66-
done
67-
env:
68-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
# - name: Publish to npm 🚀
56+
# run: |
57+
# cd library
58+
# yarn publish
59+
# cd ..
60+
# for dir in library/*; do
61+
# if [ -d "$dir" ]; then
62+
# cd "$dir"
63+
# yarn publish
64+
# cd ../../
65+
# fi
66+
# done
67+
# env:
68+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)