Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit a28acea

Browse files
committed
Change script for npm
1 parent 34b98c6 commit a28acea

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
1-
name: Node.js Package
1+
name: Publish NPM Package
22

33
on:
44
push:
5-
# types: [created]
5+
# branches:
6+
# - main
67

78
jobs:
8-
build:
9+
publish:
910
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v3
13-
with:
14-
node-version: 20.5.1
15-
- run: npm ci
1611

17-
publish-gpr:
18-
needs: build
19-
runs-on: ubuntu-latest
20-
permissions:
21-
packages: write
22-
contents: read
2312
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v3
13+
- name: Checkout Repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
2618
with:
2719
node-version: 20.5.1
28-
registry-url: https://npm.pkg.github.com/
29-
- run: npm ci
30-
- run: npm publish --access=public
20+
21+
- name: Install Dependencies
22+
run: npm install
23+
24+
# - name: Build Package
25+
# run: npm run build
26+
27+
- name: Publish to NPM
28+
run: |
29+
npm publish --access public
3130
env:
32-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)