Compare commits

...

23 Commits

Author SHA1 Message Date
Github Actions
ce370cb7b4 Updated CHANGELOGS & MD docs 2023-08-24 19:31:29 +00:00
Savarn Dontamsetti
8f0c556d1f
Adding github token 2023-08-24 15:29:25 -04:00
Savarn Dontamsetti
9f7518cc1a Merge branch 'feat/PublishPRs' of https://github.com/0xProject/protocol into feat/PublishPRs 2023-08-24 15:25:05 -04:00
Savarn Dontamsetti
6168931608
Using gh instead of third party action 2023-08-24 15:24:28 -04:00
Savarn Dontamsetti
9b53c9f939
Change github.ref to github.ref_name 2023-08-24 14:45:26 -04:00
Savarn Dontamsetti
518d2e55b4
Don't delete the branch after PR creation 2023-08-24 14:31:31 -04:00
Savarn Dontamsetti
b2d1a2fab9
More formatting fixes 2023-08-24 14:08:11 -04:00
Savarn Dontamsetti
ff531fc7e9
Fix missing closing bracket 2023-08-24 13:59:33 -04:00
Savarn Dontamsetti
230f0d57ee
Adding test commits 2023-08-24 13:56:35 -04:00
Savarn Dontamsetti
1ca6815f2c
Fix Formatting 3 2023-08-24 13:41:19 -04:00
Savarn Dontamsetti
db6013b594
Fix Formatting 2023-08-24 13:40:10 -04:00
Savarn Dontamsetti
ce9a48c102
Fix Formatting 2023-08-24 13:39:00 -04:00
Savarn Dontamsetti
25374cdf47
Formatting 2023-08-24 10:33:50 -04:00
Savarn Dontamsetti
7be1954010
Create PRs to reflect publish changes 2023-08-24 10:28:37 -04:00
Github Actions
48cc9d2dc1 Merge branch 'refs/heads/development' 2023-08-18 14:24:54 +00:00
Github Actions
bd02e7b3d5 Merge branch 'refs/heads/development' 2023-08-09 21:43:47 +00:00
Github Actions
9da449ec32 Merge branch 'refs/heads/development' 2023-07-21 21:29:05 +00:00
Github Actions
f59d2438b0 Merge branch 'refs/heads/development' 2023-07-19 18:30:57 +00:00
Github Actions
fcdebe6b01 Merge branch 'refs/heads/development' 2023-05-10 20:04:52 +00:00
Github Actions
c4a83f211f Merge branch 'refs/heads/development' 2023-05-01 21:26:04 +00:00
Github Actions
e086caa94b Merge branch 'refs/heads/development' 2023-04-24 11:12:43 +00:00
abls
53e83e74e2 Merge branch 'development' 2023-04-24 02:14:12 -07:00
Github Actions
0179320e55 Publish
- @0x/contracts-erc20@4.0.4
 - @0x/contracts-test-utils@5.4.51
 - @0x/contracts-treasury@1.4.44
 - @0x/contracts-utils@4.8.42
 - @0x/contracts-zero-ex@0.40.0
 - @0x/contract-addresses@8.3.0
 - @0x/contract-wrappers@13.22.20
 - @0x/protocol-utils@11.19.0
2023-04-17 02:08:56 +00:00
2 changed files with 69 additions and 24 deletions

View File

@ -1,19 +1,21 @@
name: publish
on:
workflow_dispatch:
inputs:
ci_status:
description: 'required CI status'
default: 'success'
required: true
prerelease:
description: 'prerelease name'
required: false
workflow_dispatch:
inputs:
ci_status:
description: 'required CI status'
default: 'success'
required: true
prerelease:
description: 'prerelease name'
required: false
jobs:
publish:
runs-on: ubuntu-latest
env:
PublishBranch: publish/${{github.ref_name }}-${{ github.run_id }}-${{ github.run_number }}
steps:
- name: 'check successful status'
run: |
@ -28,30 +30,72 @@ jobs:
version: nightly
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
ref: ${{ github.ref }}
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 16
- uses: actions/setup-python@v2
- name: 'configure git'
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "Github Actions"
- name: 'Checkout new branch'
run: |
git checkout -b $PublishBranch
git push -u origin $PublishBranch
- name: 'install dependencies'
run: |
yarn -D
- name: 'build and publish'
- name: 'Test Commits'
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
npm run run:publish:gha
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
PUBLISH_PRERELEASE: ${{ github.event.inputs.prerelease }}
- name: 'merge into main branch'
if: github.event.inputs.prerelease == '' # unless it's a prerelease
run: |
git checkout main && \
git merge ${{ github.ref }} && \
echo "Dummy File" > dummy.txt
git add . --all
git commit -m "Updated CHANGELOGS & MD docs"
git push
# - name: 'build and publish'
# run: |
# echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
# npm run run:publish:gha
# env:
# NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
# GITHUB_TOKEN: ${{ github.token }}
# PUBLISH_PRERELEASE: ${{ github.event.inputs.prerelease }}
- name: 'Create PR to merge into ref branch'
run: |
gh pr create \
-B ${{ github.ref_name }} \
-H $PublishBranch \
--title "Published ${{ github.ref_name }}" \
--body "Syncing CHANGELOG and package version updates from publish action ${{github.run_id}}-${{github.run_number}} into ${{ github.ref_name}} branch" \
--reviewer ${{ github.actor }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: 'Create PR to merge ref branch into main'
run: |
gh pr create \
-B main \
-H ${{ github.ref_name }} \
--title "Published ${{ github.ref_name }}" \
--body "Syncing CHANGELOG and package version updates from publish action ${{github.run_id}}-${{github.run_number}} into main branch" \
--reviewer ${{ github.actor }}
env:
GITHUB_TOKEN: ${{ github.token }}
# uses: peter-evans/create-pull-request@v5
# with:
# token: ${{ github.token }}
# base: ${{ github.ref_name }}
# branch: 'publish/${{ github.ref_name }}-${{ github.run_id }}-${{ github.run_number }}'
# title: 'Published ${{ github.ref_name }}'
# body: 'Syncing CHANGELOG and package version updates from publish action ${{github.run_id}}-${{github.run_number}} into ${{ github.ref_name}} branch'
# reviewers: ${{ github.actor }}
# - name: 'Create PR to merge ref branch into main'
# uses: peter-evans/create-pull-request@v5
# with:
# token: ${{ github.token }}
# base: main
# branch: ${{ github.ref_name }}
# title: 'Published ${{ github.ref_name }}'
# body: 'Syncing CHANGELOG and package version updates from published ${{ github.ref_name }} branch into main branch'
# reviewers: ${{ github.actor }}

1
dummy.txt Normal file
View File

@ -0,0 +1 @@
Dummy File