Skip to content

Commit

Permalink
use akeyless
Browse files Browse the repository at this point in the history
  • Loading branch information
montera82 committed Aug 20, 2023
1 parent 5c1c3b9 commit b808aa6
Showing 1 changed file with 15 additions and 27 deletions.
42 changes: 15 additions & 27 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
name: NPM Publish

name: "NPM Publish"
on:
push:
branches:
- main
paths:
- 'packages/snap/src/**'
release:
types: [published]
# pull_request:

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
NPM-Publish:
permissions: # Must change the job token permissions to use JWT auth
contents: read
id-token: write

- name: Install dependencies
run: yarn install --immutable
- name: Publish to NPM
run: |
cd packages/snap
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: celo-org/reusable-workflows/.github/workflows/npm-publish.yaml@v1.10.5
with:
node-version: 16
package-dir: "packages/snap"
akeyless-api-gateway: https://api.gateway.akeyless.celo-networks-dev.org
akeyless-github-access-id: <TODO>
akeyless-token-path: <TODO>

0 comments on commit b808aa6

Please sign in to comment.