Skip to content

Commit

Permalink
Remove job publishing testnet tbtc-v2.ts packages
Browse files Browse the repository at this point in the history
We no longer want to publish new `typescript` (`tbtc-v2.ts`) testnet packages as
part of the CI flow. The Typescript project is transitioning to v2, which has
all the chain configs embeded, so we'll no longer use the `mainnet` and `goerli`
packages. The only tags will be `latest` and `development`. All existing testnet
packages were marked in the NPM registry as deprecated (projects still can use
them as dependencies, but will get a warning).
  • Loading branch information
michalinacienciala committed Oct 25, 2023
1 parent 463f46c commit 64fca6b
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,78 +74,6 @@ jobs:
- name: Tests
run: yarn test

typescript-build-and-deploy-testnet:
needs: [typescript-detect-changes, typescript-build-and-test]
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: "18.x"
cache: "yarn"
cache-dependency-path: typescript/yarn.lock
registry-url: "https://registry.npmjs.org"

# We need this step because the `@keep-network/tbtc-v2` which we update in
# next step has an indirect dependency to `@summa-tx/[email protected]`
# package, which downloads one of its sub-dependencies via unathenticated
# `git://` protocol. That protocol is no longer supported. Thanks to this
# step `https://` is used instead of `git://`.
- name: Configure git to don't use unauthenticated protocol
run: git config --global url."https://".insteadOf git://

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Get upstream packages versions
uses: keep-network/ci/actions/upstream-builds-query@v2
id: upstream-builds-query
with:
upstream-builds: ${{ github.event.inputs.upstream_builds }}
query: |
ecdsa-contracts-version = github.com/keep-network/keep-core/ecdsa#version
tbtc-v2-contracts-version = github.com/keep-network/tbtc-v2#version
- name: Resolve latest contracts
run: |
yarn upgrade \
@keep-network/ecdsa@${{ steps.upstream-builds-query.outputs.ecdsa-contracts-version }} \
@keep-network/tbtc-v2@${{ steps.upstream-builds-query.outputs.tbtc-v2-contracts-version }}
- name: Build
run: yarn build

- name: Bump up package version
id: npm-version-bump
uses: keep-network/npm-version-bump@v2
with:
work-dir: typescript
environment: ${{ github.event.inputs.environment }}
branch: ${{ github.ref }}
commit: ${{ github.sha }}

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access=public --tag ${{ github.event.inputs.environment }}

- name: Notify CI about completion of the workflow
uses: keep-network/ci/actions/notify-workflow-completed@v2
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
with:
module: "github.com/keep-network/typescript"
url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
environment: ${{ github.event.inputs.environment }}
upstream_builds: ${{ github.event.inputs.upstream_builds }}
upstream_ref: ${{ github.event.inputs.upstream_ref }}
version: ${{ steps.npm-version-bump.outputs.version }}

typescript-format:
needs: typescript-detect-changes
if: |
Expand Down

0 comments on commit 64fca6b

Please sign in to comment.