Skip to content

Commit

Permalink
Merge pull request #4 from coinbase/add_cicd
Browse files Browse the repository at this point in the history
Enable provenance and add GitHub workflow to publish pkg
  • Loading branch information
drohit-cb authored Dec 18, 2023
2 parents b2163e8 + bdb4035 commit 0080165
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Version 🔖

on:
release:
types: [created]

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
version:
name: Release
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@^9.5.0
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/staking-client-library-ts",
"version": "1.0.0",
"version": "0.2.1",
"description": "Coinbase Cloud Staking API Typescript Library",
"license": "Apache-2.0",
"main": "dist/index.js",
Expand All @@ -11,6 +11,10 @@
"lint": "eslint . --ext .ts --ignore-pattern '/dist/*/*'",
"lintfix": "eslint . --ext .ts --fix --ignore-pattern '/dist/*/*'"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"devDependencies": {
"@types/node-jose": "^1.1.10",
"@typescript-eslint/eslint-plugin": "^6.7.0",
Expand Down

0 comments on commit 0080165

Please sign in to comment.