Skip to content

Commit b7b22e9

Browse files
committed
Merge branch 'master' of https://github.com/MuskettaMan/PoolManagement into development
# Conflicts: # package.json
2 parents 877bb5c + e1cb575 commit b7b22e9

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to npm
2+
3+
# Controls when the action will run.
4+
# In this case, I'm saying on each release event when it's specifically a new release publish, the types: [published] is required here,
5+
# since releases could also be updated or deleted, we only want to publish to npm when a new release is created (published).
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
15+
- uses: actions/checkout@v2
16+
#Install Node.js, with the version 12 and using the registry URL of npm, this could be changed to a custom registry or the GitHub registry.
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
registry-url: https://registry.npmjs.org/
21+
22+
# Command to install the package dependencies
23+
- run: yarn install
24+
25+
# Publish to npm
26+
- run: npm publish --access public
27+
env:
28+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)