Skip to content

Commit

Permalink
Merge pull request #1 from gofynd/workflow-test
Browse files Browse the repository at this point in the history
Create npm-publish.yml
  • Loading branch information
ZaidRehmanQureshi authored Dec 18, 2024
2 parents d6bd058 + 3072c50 commit 54f94bb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: jaywcjlove/github-action-package@main
with:
version: ${{ github.ref_name }}
rename: "@gofynd/fdk-store-gql"
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fdk-store",
"version": "v3.0.19-beta.2",
"name": "@gofynd/fdk-store-gql",
"version": "3.0.38-beta.10",
"description": "FPI Store bridging library",
"main": "./lib/index.js",
"module": "./lib/index.js",
Expand Down

0 comments on commit 54f94bb

Please sign in to comment.