Skip to content

.github/workflows/on_create_release.yml #64

.github/workflows/on_create_release.yml

.github/workflows/on_create_release.yml #64

on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- uses: jaywcjlove/github-action-package@main
with:
version: ${{ github.ref_name }}
rename: "@gofynd/fdk-client-javascript"
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}