Skip to content

Commit

Permalink
add: npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Jan 31, 2024
1 parent 754318d commit 46d6900
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and build 🔧
run: npm ci && npm run build
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/**/*
node_modules/**/*
src/test/**/*
docs/**/*
__tests__/**/*
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "filen-sdk",
"name": "@filen/filen-sdk",
"version": "1.0.0",
"description": "Filen SDK",
"main": "dist/bundle.node.js",
"browser": "dist/bundle.browser.js",
"types": "dist/types/index.d.ts",
"private": false,
"scripts": {
"test": "jest --forceExit ./__tests__",
"dev": "ts-node src/test/index.ts",
Expand Down

0 comments on commit 46d6900

Please sign in to comment.