Skip to content

Commit e95cd9d

Browse files
committed
WIP
1 parent 0786f2d commit e95cd9d

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.github/workflows/publish.yaml

+39-39
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish package
22

33
on:
44
push:
5-
tags:
6-
- v*.*.*
5+
# tags:
6+
# - v*.*.*
77

88
jobs:
99
publish-to-npm:
@@ -18,14 +18,14 @@ jobs:
1818
registry-url: 'https://registry.npmjs.org'
1919
scope: ${{ github.repository_owner }}
2020

21-
- name: Update package.json
22-
run: |
23-
TAG_NAME=${GITHUB_REF/refs\/tags\//}
24-
PACKAGE_VERSION=${TAG_NAME#v}
25-
echo "Updating package.json to version $PACKAGE_VERSION"
26-
cat <<< $(jq -r ".version=\"$PACKAGE_VERSION\"" package.json) > package.json
27-
cat <<< $(jq -r ".name=\"@${{ github.repository }}\"" package.json) > package.json
28-
cat package.json
21+
# - name: Update package.json
22+
# run: |
23+
# TAG_NAME=${GITHUB_REF/refs\/tags\//}
24+
# PACKAGE_VERSION=${TAG_NAME#v}
25+
# echo "Updating package.json to version $PACKAGE_VERSION"
26+
# cat <<< $(jq -r ".version=\"$PACKAGE_VERSION\"" package.json) > package.json
27+
# cat <<< $(jq -r ".name=\"@${{ github.repository }}\"" package.json) > package.json
28+
# cat package.json
2929

3030
# - name: Install dependencies
3131
# run: yarn install --frozen-lockfile
@@ -38,37 +38,37 @@ jobs:
3838
env:
3939
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4040

41-
publish-to-github:
42-
runs-on: ubuntu-latest
43-
permissions:
44-
contents: read
45-
packages: write
46-
steps:
47-
- name: Checkout
48-
uses: actions/checkout@v3
41+
# publish-to-github:
42+
# runs-on: ubuntu-latest
43+
# permissions:
44+
# contents: read
45+
# packages: write
46+
# steps:
47+
# - name: Checkout
48+
# uses: actions/checkout@v3
4949

50-
- uses: actions/setup-node@v3
51-
with:
52-
node-version: 18
53-
registry-url: 'https://npm.pkg.github.com'
54-
scope: ${{ github.repository_owner }}
50+
# - uses: actions/setup-node@v3
51+
# with:
52+
# node-version: 18
53+
# registry-url: 'https://npm.pkg.github.com'
54+
# scope: ${{ github.repository_owner }}
5555

56-
- name: Update package.json
57-
run: |
58-
TAG_NAME=${GITHUB_REF/refs\/tags\//}
59-
PACKAGE_VERSION=${TAG_NAME#v}
60-
echo "Updating package.json to version $PACKAGE_VERSION"
61-
cat <<< $(jq -r ".version=\"$PACKAGE_VERSION\"" package.json) > package.json
62-
cat <<< $(jq -r ".name=\"@${{ github.repository }}\"" package.json) > package.json
63-
cat package.json
56+
# - name: Update package.json
57+
# run: |
58+
# TAG_NAME=${GITHUB_REF/refs\/tags\//}
59+
# PACKAGE_VERSION=${TAG_NAME#v}
60+
# echo "Updating package.json to version $PACKAGE_VERSION"
61+
# cat <<< $(jq -r ".version=\"$PACKAGE_VERSION\"" package.json) > package.json
62+
# cat <<< $(jq -r ".name=\"@${{ github.repository }}\"" package.json) > package.json
63+
# cat package.json
6464

65-
# - name: Install dependencies
66-
# run: yarn install --frozen-lockfile
65+
# # - name: Install dependencies
66+
# # run: yarn install --frozen-lockfile
6767

68-
# - name: Build
69-
# run: yarn build
68+
# # - name: Build
69+
# # run: yarn build
7070

71-
- name: Publish
72-
run: yarn publish
73-
env:
74-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
# - name: Publish
72+
# run: yarn publish
73+
# env:
74+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)