Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary releases workflow added #60

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: release

on:
pull_request_target:
types:
- closed
branches:
- master

jobs:
release:
if: github.event.pull_request.merged == true
runs-on: [ ubuntu-22.04 ]
environment: prod

steps:
- name: Check out branch
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Set git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '[email protected]'

- name: Setup Node.js environment
uses: actions/[email protected]
with:
registry-url: 'https://registry.npmjs.org'

- name: Update version in package.json
run: |
npm version patch -m "patch release %s"
git status

- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.event.pull_request.head.ref }}
tags: true

- name: Publish package on GPR
run: |
npm config set registry https://npm.pkg.github.com
npm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
npm publish

# - name: Publish package on NPM
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"type": "git",
"url": "https://github.com/nilfoundation/evm-placeholder-verification.git"
},
"publishConfig": {
"access": "public"
},
"author": "Mikhail Komarov, Aleksey Moskvin, Ilia Shirobokov, Elena Tatuzova, Polina Chernyshova",
"license": "Apache",
"bugs": {
Expand Down
Loading