Skip to content

Commit 42e6949

Browse files
authored
Merge pull request #41 from Giorgiosaud/test/deployment-flow
fix: pipelines
2 parents 1cac1d6 + e182225 commit 42e6949

File tree

1 file changed

+48
-49
lines changed

1 file changed

+48
-49
lines changed

.github/workflows/publish.yml

Lines changed: 48 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -91,55 +91,54 @@ jobs:
9191
NODE_AUTH_TOKEN: ${{ secrets.TOKEN_REG }}
9292
- name: publish to npm
9393
run: |
94-
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}">.npmrc
9594
pnpm publish --no-git-checks
9695
env:
97-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
98-
push-to-github-registry:
99-
name: Publish to Github Registry
100-
runs-on: ubuntu-latest
101-
needs: cache-install-and-version
102-
steps:
103-
- name: Checkout
104-
uses: actions/checkout@v3
105-
- name: Install Node.js
106-
uses: actions/setup-node@v3
107-
with:
108-
node-version: 16
109-
registry-url: 'https://npm.pkg.github.com'
110-
- uses: pnpm/action-setup@v2.0.1
111-
name: Install pnpm
112-
id: pnpm-install
113-
with:
114-
version: 7
115-
run_install: false
116-
- name: Get pnpm store directory
117-
id: pnpm-cache
118-
run: |
119-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
96+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
97+
# push-to-github-registry:
98+
# name: Publish to Github Registry
99+
# runs-on: ubuntu-latest
100+
# needs: cache-install-and-version
101+
# steps:
102+
# - name: Checkout
103+
# uses: actions/checkout@v3
104+
# - name: Install Node.js
105+
# uses: actions/setup-node@v3
106+
# with:
107+
# node-version: 16
108+
# registry-url: 'https://npm.pkg.github.com'
109+
# - uses: pnpm/action-setup@v2.0.1
110+
# name: Install pnpm
111+
# id: pnpm-install
112+
# with:
113+
# version: 7
114+
# run_install: false
115+
# - name: Get pnpm store directory
116+
# id: pnpm-cache
117+
# run: |
118+
# echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
120119

121-
- uses: actions/cache@v3
122-
name: Setup pnpm cache
123-
with:
124-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
125-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
126-
restore-keys: |
127-
${{ runner.os }}-pnpm-store-
128-
- uses: actions/cache@v3
129-
name: Cache package.json
130-
with:
131-
path: package.json
132-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
133-
restore-keys: |
134-
${{ runner.os }}-package-json-
135-
- name: Install dependencies
136-
run: pnpm install
137-
env:
138-
NODE_AUTH_TOKEN: ${{ secrets.TOKEN_REG }}
139-
- name: publish to github registry
140-
run: |
141-
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}">.npmrc
142-
echo "registry=https://npm.pkg.github.com">>.npmrc
143-
pnpm publish --no-git-checks
144-
env:
145-
NODE_AUTH_TOKEN: ${{ secrets.TOKEN_REG }}
120+
# - uses: actions/cache@v3
121+
# name: Setup pnpm cache
122+
# with:
123+
# path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
124+
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
125+
# restore-keys: |
126+
# ${{ runner.os }}-pnpm-store-
127+
# - uses: actions/cache@v3
128+
# name: Cache package.json
129+
# with:
130+
# path: package.json
131+
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
132+
# restore-keys: |
133+
# ${{ runner.os }}-package-json-
134+
# - name: Install dependencies
135+
# run: pnpm install
136+
# env:
137+
# NODE_AUTH_TOKEN: ${{ secrets.TOKEN_REG }}
138+
# - name: publish to github registry
139+
# run: |
140+
# echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}">.npmrc
141+
# echo "registry=https://npm.pkg.github.com">>.npmrc
142+
# pnpm publish --no-git-checks
143+
# env:
144+
# NODE_AUTH_TOKEN: ${{ secrets.TOKEN_REG }}

0 commit comments

Comments
 (0)