Skip to content

Commit 70c488d

Browse files
authored
Merge pull request #62 from Software-Developers-IRL/npm-publish-action
Npm publish action
2 parents 1a3856d + 049edad commit 70c488d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
# Setup .npmrc file to publish to npm
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: '16.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm ci
17+
- run: npm publish
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@funktechno/little-mermaid-2-the-sql",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "",
55
"main": "./lib/index.js",
66
"engines": {

0 commit comments

Comments
 (0)