forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into deniallugo-zks-928-wrong-pagination-for-execu…
…ted-txs-in-v02
- Loading branch information
Showing
19 changed files
with
516 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Publish NPM packages | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'ref or tag to publish NPM packages from' | ||
default: '' | ||
required: false | ||
|
||
jobs: | ||
publish-zksync: | ||
name: Publish zksync.js | ||
uses: matter-labs/zksync-dev/.github/workflows/npm.publish.yml@devops/publish-npm-zksync | ||
with: | ||
working-directory: sdk/zksync.js | ||
build-command: | | ||
npm install | ||
npm run build | ||
ref: ${{ github.event.inputs.ref }} | ||
secrets: | ||
notify-webhook: ${{ secrets.MATTERMOST_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Publish an NPM Package | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
working-directory: | ||
description: Directory with the NPM package contnts | ||
type: string | ||
required: true | ||
build-command: | ||
description: Command to perform NPM pack | ||
type: string | ||
required: true | ||
ref: | ||
description: 'ref or tag to publish NPM package from' | ||
type: string | ||
required: false | ||
|
||
secrets: | ||
notify-webhook: | ||
description: Chat notification webhook | ||
required: true | ||
|
||
jobs: | ||
local-call-publish: | ||
name: Build NPM package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
- | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- | ||
name: Package info | ||
id: info | ||
uses: gregoranders/[email protected] | ||
with: | ||
path: ${{ inputs.working-directory }}/package.json | ||
- | ||
name: Build package | ||
id: build | ||
working-directory: ${{ inputs.working-directory }} | ||
run: | | ||
${{ inputs.build-command }} | ||
- | ||
if: steps.build.outcome == 'success' | ||
name: Publish to npmjs.com | ||
working-directory: ${{ inputs.working-directory }} | ||
run: | | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- | ||
if: failure() | ||
name: Notify to Mattermost (on incidents) | ||
uses: tferreira/matterfy@releases/v1 | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Publishing `${{ steps.info.outputs.name }}` to npmjs.com did not succeed*' | ||
icon_emoji: octocat | ||
channel: 'ci-notifications' | ||
url: ${{ secrets.notify-webhook }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.