Skip to content

Commit

Permalink
chore: updated publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devlargs committed Aug 6, 2024
1 parent c30995c commit d96226f
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 29 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
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: '16'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm ci
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
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: "16"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and build 🔧
run: npm ci
- name: Build project
run: npm run build
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
lib
1 change: 0 additions & 1 deletion lib/coercedGet.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions lib/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/shuffleArray.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/src/coercedGet.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/src/index.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/src/shuffleArray.js

This file was deleted.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { coercedGet } from "./coercedGet";
export { shuffleArray } from "./shuffleArray";
console.log("success?");

0 comments on commit d96226f

Please sign in to comment.