Skip to content

Commit aa4a954

Browse files
authored
Use graph-ts and graph-cli packages from gitea (#283)
* Use published packages from gitea * Remove token used for github packages
1 parent a834250 commit aa4a954

File tree

9 files changed

+36
-70
lines changed

9 files changed

+36
-70
lines changed

.github/workflows/manual_npm_publishl.yml

-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
registry-url: 'https://npm.pkg.github.com'
2727
- run: yarn
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
3028
- name: Run yarn build
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
3329
run: |
3430
yarn build
3531
- name: Configure git.vdb.to npm registry

.github/workflows/on-main.yaml

-11
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ jobs:
1919
node-version: ${{ matrix.node-version }}
2020
registry-url: 'https://npm.pkg.github.com'
2121
- run: yarn
22-
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
23-
env:
24-
# GITHUB_TOKEN can't access packages from other private repositories.
25-
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages
26-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
2722
- name: Linter check
2823
run: yarn lint
2924
test:
@@ -39,11 +34,7 @@ jobs:
3934
node-version: ${{ matrix.node-version }}
4035
registry-url: 'https://npm.pkg.github.com'
4136
- run: yarn
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
4437
- name: Run tests
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
4738
run: |
4839
yarn build
4940
yarn test:init
@@ -60,8 +51,6 @@ jobs:
6051
echo ::set-output name=repo::$(echo ${{ github.repository }})
6152
- name: Run docker build
6253
run: make docker-build
63-
env:
64-
NPM_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
6554
- name: Tag docker image
6655
run: docker tag ${{steps.vars.outputs.repo}} ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}}
6756
- name: Docker Login

.github/workflows/on-pr.yaml

-11
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ jobs:
1616
node-version: ${{ matrix.node-version }}
1717
registry-url: 'https://npm.pkg.github.com'
1818
- run: yarn
19-
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
20-
env:
21-
# GITHUB_TOKEN can't access packages from other private repositories.
22-
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages
23-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
2419
- name: Linter check
2520
run: yarn lint
2621
test:
@@ -36,11 +31,7 @@ jobs:
3631
node-version: ${{ matrix.node-version }}
3732
registry-url: 'https://npm.pkg.github.com'
3833
- run: yarn
39-
env:
40-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
4134
- name: Run tests
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
4435
run: |
4536
yarn build
4637
yarn test:init
@@ -53,5 +44,3 @@ jobs:
5344
- uses: actions/checkout@v2
5445
- name: Run docker build
5546
run: make docker-build
56-
env:
57-
NPM_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}

.github/workflows/publish.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ jobs:
3737
node-version: ${{ matrix.node-version }}
3838
registry-url: 'https://npm.pkg.github.com'
3939
- run: yarn
40-
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
4240
- name: Run yarn build
43-
env:
44-
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
4541
run: |
4642
yarn build
4743
- name: Configure git.vdb.to npm registry

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
registry=https://git.vdb.to/api/packages/cerc-io/npm/
2-
@vulcanize:registry=https://npm.pkg.github.com

Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
FROM node:16.13.1-alpine3.14
22

3-
ARG NPM_AUTH_TOKEN
43
WORKDIR /app
54

65
COPY . .
76

8-
RUN echo //npm.pkg.github.com/:_authToken=$NPM_AUTH_TOKEN > ~/.npmrc
9-
107
RUN apk --update --no-cache add git && yarn
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@graphprotocol:registry=https://npm.pkg.github.com
1+
@cerc-io:registry=https://git.vdb.to/api/packages/cerc-io/npm/

packages/graph-node/test/subgraph/example1/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 example1"
1111
},
1212
"dependencies": {
13-
"@graphprotocol/graph-ts": "npm:@vulcanize/[email protected].2",
14-
"@vulcanize/graph-cli": "0.22.5"
13+
"@graphprotocol/graph-ts": "npm:@cerc-io/[email protected].1-watcher-ts-0.1.0",
14+
"@cerc-io/graph-cli": "0.22.4-watcher-ts-0.1.0"
1515
}
1616
}

packages/graph-node/test/subgraph/example1/yarn.lock

+33-33
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,39 @@
2323
chalk "^2.0.0"
2424
js-tokens "^4.0.0"
2525

26-
"@graphprotocol/graph-ts@npm:@vulcanize/[email protected]":
27-
version "0.22.2"
28-
resolved "https://npm.pkg.github.com/download/@vulcanize/graph-ts/0.22.2/a403a4ef6a5742246c4a1c97695a2f55943eb3a7#a403a4ef6a5742246c4a1c97695a2f55943eb3a7"
29-
integrity sha512-Fscv1owyoeAkS9QsLGXOalMZlb3j0Ge22z+wmpqA6zJHRiSUyyIyiarSz6e0ZTs761oFqqvt00dR6A/4xxf40A==
26+
"@cerc-io/[email protected]":
27+
version "0.22.4-watcher-ts-0.1.0"
28+
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fgraph-cli/-/0.22.4-watcher-ts-0.1.0/graph-cli-0.22.4-watcher-ts-0.1.0.tgz#2a5ce10ae15352bee4573466fadaf50f842e8fcd"
29+
integrity sha512-gzUOGEc0zT3XO3+9WyJ5GlPZvdjLd5ttsTxwNXnI2qZnDWUqnEnNIXXieglKeXjf6Y6CLToJpKAx7Hf/HGkeNw==
30+
dependencies:
31+
assemblyscript "0.19.10"
32+
binary-install-raw "0.0.13"
33+
chalk "^3.0.0"
34+
chokidar "^3.0.2"
35+
debug "^4.1.1"
36+
docker-compose "^0.23.2"
37+
dockerode "^2.5.8"
38+
fs-extra "^9.0.0"
39+
glob "^7.1.2"
40+
gluegun "^4.3.1"
41+
graphql "^15.5.0"
42+
immutable "^3.8.2"
43+
ipfs-http-client "^34.0.0"
44+
jayson "^3.0.2"
45+
js-yaml "^3.13.1"
46+
node-fetch "^2.3.0"
47+
pkginfo "^0.4.1"
48+
prettier "^1.13.5"
49+
request "^2.88.0"
50+
semver "7.3.5"
51+
tmp-promise "^3.0.2"
52+
which "2.0.2"
53+
yaml "^1.5.1"
54+
55+
"@graphprotocol/graph-ts@npm:@cerc-io/[email protected]":
56+
version "0.22.1-watcher-ts-0.1.0"
57+
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fgraph-ts/-/0.22.1-watcher-ts-0.1.0/graph-ts-0.22.1-watcher-ts-0.1.0.tgz#a8813ce6eb8dcc8f689a422a493276a923084854"
58+
integrity sha512-YBCaCgr0POeEs4McF6CZa0W5J52x3GgToJWfMyJOtBdk68vnxk/fd+1z4qLNT48xAPlWFOrebunNOnFCF3LJOw==
3059
dependencies:
3160
assemblyscript "0.19.10"
3261

@@ -83,35 +112,6 @@
83112
dependencies:
84113
"@types/node" "*"
85114

86-
"@vulcanize/[email protected]":
87-
version "0.22.5"
88-
resolved "https://npm.pkg.github.com/download/@vulcanize/graph-cli/0.22.5/32a7a7d38277ce99a49692538476c5290b296288ef5e770437536900874d423a#8718ad790abbec32b465a24147e0bbbca5e95fcd"
89-
integrity sha512-wvTF7pF1NQwCAS40JXSVQcXZRt2gmyN4DsHA8SZLSlkxR1ZXCIOC/74cZW0fuIf/WvUO2knBURQMHykyvgD2Og==
90-
dependencies:
91-
assemblyscript "0.19.10"
92-
binary-install-raw "0.0.13"
93-
chalk "^3.0.0"
94-
chokidar "^3.0.2"
95-
debug "^4.1.1"
96-
docker-compose "^0.23.2"
97-
dockerode "^2.5.8"
98-
fs-extra "^9.0.0"
99-
glob "^7.1.2"
100-
gluegun "^4.3.1"
101-
graphql "^15.5.0"
102-
immutable "^3.8.2"
103-
ipfs-http-client "^34.0.0"
104-
jayson "^3.0.2"
105-
js-yaml "^3.13.1"
106-
node-fetch "^2.3.0"
107-
pkginfo "^0.4.1"
108-
prettier "^1.13.5"
109-
request "^2.88.0"
110-
semver "7.3.5"
111-
tmp-promise "^3.0.2"
112-
which "2.0.2"
113-
yaml "^1.5.1"
114-
115115
116116
version "1.3.2"
117117
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.2.tgz#c102371b6ec3a7cf3b847ca00c20bb0fce4c6dea"

0 commit comments

Comments
 (0)