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

Enable provenance and add GitHub workflow to publish pkg #4

Merged
merged 1 commit into from
Dec 18, 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
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