Skip to content

Commit

Permalink
add: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmittal23 committed Aug 21, 2023
1 parent a778f7d commit df32bc1
Show file tree
Hide file tree
Showing 5 changed files with 2,588 additions and 136 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/npm-release.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: NPM Release Workflow
run-name: ${{ github.actor }} just pushed to Chainflow

on:
push:
branches: [main]

jobs:
Deployment:
name: Publish Chainflow
runs-on: ubuntu-latest
env:
working-directory: ./
permissions:
contents: read
packages: write
steps:
- name: CHECK-OUT GIT REPOSITORY
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0

- name: Use Node.js
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
scope: '@maticnetwork'

- name: Create Release
run: npm run release

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Create GitHub Release
run: gh release create v${{ cat package.json | jq -r .version }} -F CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 0 additions & 27 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maticnetwork/chainflow",
"version": "1.1.0",
"version": "1.0.0",
"description": "blockchain data indexer",
"type": "module",
"exports": {
Expand Down
Loading

0 comments on commit df32bc1

Please sign in to comment.