mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-06 19:38:05 +00:00
Use graph-ts and graph-cli packages from gitea (#283)
* Use published packages from gitea * Remove token used for github packages
This commit is contained in:
parent
a834250259
commit
aa4a954330
4
.github/workflows/manual_npm_publishl.yml
vendored
4
.github/workflows/manual_npm_publishl.yml
vendored
@ -25,11 +25,7 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
- run: yarn
|
- run: yarn
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Run yarn build
|
- name: Run yarn build
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
run: |
|
run: |
|
||||||
yarn build
|
yarn build
|
||||||
- name: Configure git.vdb.to npm registry
|
- name: Configure git.vdb.to npm registry
|
||||||
|
11
.github/workflows/on-main.yaml
vendored
11
.github/workflows/on-main.yaml
vendored
@ -19,11 +19,6 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
- run: yarn
|
- run: yarn
|
||||||
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
|
|
||||||
env:
|
|
||||||
# GITHUB_TOKEN can't access packages from other private repositories.
|
|
||||||
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Linter check
|
- name: Linter check
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
test:
|
test:
|
||||||
@ -39,11 +34,7 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
- run: yarn
|
- run: yarn
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
run: |
|
run: |
|
||||||
yarn build
|
yarn build
|
||||||
yarn test:init
|
yarn test:init
|
||||||
@ -60,8 +51,6 @@ jobs:
|
|||||||
echo ::set-output name=repo::$(echo ${{ github.repository }})
|
echo ::set-output name=repo::$(echo ${{ github.repository }})
|
||||||
- name: Run docker build
|
- name: Run docker build
|
||||||
run: make docker-build
|
run: make docker-build
|
||||||
env:
|
|
||||||
NPM_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Tag docker image
|
- name: Tag docker image
|
||||||
run: docker tag ${{steps.vars.outputs.repo}} ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}}
|
run: docker tag ${{steps.vars.outputs.repo}} ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}}
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
|
11
.github/workflows/on-pr.yaml
vendored
11
.github/workflows/on-pr.yaml
vendored
@ -16,11 +16,6 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
- run: yarn
|
- run: yarn
|
||||||
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
|
|
||||||
env:
|
|
||||||
# GITHUB_TOKEN can't access packages from other private repositories.
|
|
||||||
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Linter check
|
- name: Linter check
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
test:
|
test:
|
||||||
@ -36,11 +31,7 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
- run: yarn
|
- run: yarn
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
run: |
|
run: |
|
||||||
yarn build
|
yarn build
|
||||||
yarn test:init
|
yarn test:init
|
||||||
@ -53,5 +44,3 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run docker build
|
- name: Run docker build
|
||||||
run: make docker-build
|
run: make docker-build
|
||||||
env:
|
|
||||||
NPM_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
|
4
.github/workflows/publish.yaml
vendored
4
.github/workflows/publish.yaml
vendored
@ -37,11 +37,7 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
- run: yarn
|
- run: yarn
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Run yarn build
|
- name: Run yarn build
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
run: |
|
run: |
|
||||||
yarn build
|
yarn build
|
||||||
- name: Configure git.vdb.to npm registry
|
- name: Configure git.vdb.to npm registry
|
||||||
|
1
.npmrc
1
.npmrc
@ -1,2 +1 @@
|
|||||||
registry=https://git.vdb.to/api/packages/cerc-io/npm/
|
registry=https://git.vdb.to/api/packages/cerc-io/npm/
|
||||||
@vulcanize:registry=https://npm.pkg.github.com
|
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
FROM node:16.13.1-alpine3.14
|
FROM node:16.13.1-alpine3.14
|
||||||
|
|
||||||
ARG NPM_AUTH_TOKEN
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN echo //npm.pkg.github.com/:_authToken=$NPM_AUTH_TOKEN > ~/.npmrc
|
|
||||||
|
|
||||||
RUN apk --update --no-cache add git && yarn
|
RUN apk --update --no-cache add git && yarn
|
||||||
|
@ -1 +1 @@
|
|||||||
@graphprotocol:registry=https://npm.pkg.github.com
|
@cerc-io:registry=https://git.vdb.to/api/packages/cerc-io/npm/
|
@ -10,7 +10,7 @@
|
|||||||
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 example1"
|
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 example1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@graphprotocol/graph-ts": "npm:@vulcanize/graph-ts@0.22.2",
|
"@graphprotocol/graph-ts": "npm:@cerc-io/graph-ts@0.22.1-watcher-ts-0.1.0",
|
||||||
"@vulcanize/graph-cli": "0.22.5"
|
"@cerc-io/graph-cli": "0.22.4-watcher-ts-0.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,39 @@
|
|||||||
chalk "^2.0.0"
|
chalk "^2.0.0"
|
||||||
js-tokens "^4.0.0"
|
js-tokens "^4.0.0"
|
||||||
|
|
||||||
"@graphprotocol/graph-ts@npm:@vulcanize/graph-ts@0.22.2":
|
"@cerc-io/graph-cli@0.22.4-watcher-ts-0.1.0":
|
||||||
version "0.22.2"
|
version "0.22.4-watcher-ts-0.1.0"
|
||||||
resolved "https://npm.pkg.github.com/download/@vulcanize/graph-ts/0.22.2/a403a4ef6a5742246c4a1c97695a2f55943eb3a7#a403a4ef6a5742246c4a1c97695a2f55943eb3a7"
|
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"
|
||||||
integrity sha512-Fscv1owyoeAkS9QsLGXOalMZlb3j0Ge22z+wmpqA6zJHRiSUyyIyiarSz6e0ZTs761oFqqvt00dR6A/4xxf40A==
|
integrity sha512-gzUOGEc0zT3XO3+9WyJ5GlPZvdjLd5ttsTxwNXnI2qZnDWUqnEnNIXXieglKeXjf6Y6CLToJpKAx7Hf/HGkeNw==
|
||||||
|
dependencies:
|
||||||
|
assemblyscript "0.19.10"
|
||||||
|
binary-install-raw "0.0.13"
|
||||||
|
chalk "^3.0.0"
|
||||||
|
chokidar "^3.0.2"
|
||||||
|
debug "^4.1.1"
|
||||||
|
docker-compose "^0.23.2"
|
||||||
|
dockerode "^2.5.8"
|
||||||
|
fs-extra "^9.0.0"
|
||||||
|
glob "^7.1.2"
|
||||||
|
gluegun "^4.3.1"
|
||||||
|
graphql "^15.5.0"
|
||||||
|
immutable "^3.8.2"
|
||||||
|
ipfs-http-client "^34.0.0"
|
||||||
|
jayson "^3.0.2"
|
||||||
|
js-yaml "^3.13.1"
|
||||||
|
node-fetch "^2.3.0"
|
||||||
|
pkginfo "^0.4.1"
|
||||||
|
prettier "^1.13.5"
|
||||||
|
request "^2.88.0"
|
||||||
|
semver "7.3.5"
|
||||||
|
tmp-promise "^3.0.2"
|
||||||
|
which "2.0.2"
|
||||||
|
yaml "^1.5.1"
|
||||||
|
|
||||||
|
"@graphprotocol/graph-ts@npm:@cerc-io/graph-ts@0.22.1-watcher-ts-0.1.0":
|
||||||
|
version "0.22.1-watcher-ts-0.1.0"
|
||||||
|
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"
|
||||||
|
integrity sha512-YBCaCgr0POeEs4McF6CZa0W5J52x3GgToJWfMyJOtBdk68vnxk/fd+1z4qLNT48xAPlWFOrebunNOnFCF3LJOw==
|
||||||
dependencies:
|
dependencies:
|
||||||
assemblyscript "0.19.10"
|
assemblyscript "0.19.10"
|
||||||
|
|
||||||
@ -83,35 +112,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@vulcanize/graph-cli@0.22.5":
|
|
||||||
version "0.22.5"
|
|
||||||
resolved "https://npm.pkg.github.com/download/@vulcanize/graph-cli/0.22.5/32a7a7d38277ce99a49692538476c5290b296288ef5e770437536900874d423a#8718ad790abbec32b465a24147e0bbbca5e95fcd"
|
|
||||||
integrity sha512-wvTF7pF1NQwCAS40JXSVQcXZRt2gmyN4DsHA8SZLSlkxR1ZXCIOC/74cZW0fuIf/WvUO2knBURQMHykyvgD2Og==
|
|
||||||
dependencies:
|
|
||||||
assemblyscript "0.19.10"
|
|
||||||
binary-install-raw "0.0.13"
|
|
||||||
chalk "^3.0.0"
|
|
||||||
chokidar "^3.0.2"
|
|
||||||
debug "^4.1.1"
|
|
||||||
docker-compose "^0.23.2"
|
|
||||||
dockerode "^2.5.8"
|
|
||||||
fs-extra "^9.0.0"
|
|
||||||
glob "^7.1.2"
|
|
||||||
gluegun "^4.3.1"
|
|
||||||
graphql "^15.5.0"
|
|
||||||
immutable "^3.8.2"
|
|
||||||
ipfs-http-client "^34.0.0"
|
|
||||||
jayson "^3.0.2"
|
|
||||||
js-yaml "^3.13.1"
|
|
||||||
node-fetch "^2.3.0"
|
|
||||||
pkginfo "^0.4.1"
|
|
||||||
prettier "^1.13.5"
|
|
||||||
request "^2.88.0"
|
|
||||||
semver "7.3.5"
|
|
||||||
tmp-promise "^3.0.2"
|
|
||||||
which "2.0.2"
|
|
||||||
yaml "^1.5.1"
|
|
||||||
|
|
||||||
JSONStream@1.3.2:
|
JSONStream@1.3.2:
|
||||||
version "1.3.2"
|
version "1.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.2.tgz#c102371b6ec3a7cf3b847ca00c20bb0fce4c6dea"
|
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.2.tgz#c102371b6ec3a7cf3b847ca00c20bb0fce4c6dea"
|
||||||
|
Loading…
Reference in New Issue
Block a user