Skip to content

Commit

Permalink
ci: add push and workflow_dispatch to npm-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed May 2, 2024
1 parent bf8f6ac commit 900f9bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
name: Node.js Package

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

release:
types: [created]

Expand All @@ -15,8 +22,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: cd /packages/typescript/ && npm ci
- run: cd /packages/typescript/ && npm test
- run: cd /packages/typescript/ && yarn ci
- run: cd /packages/typescript/ && yarn test

publish-npm:
needs: build
Expand All @@ -27,7 +34,7 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: cd /packages/typescript/ && npm ci
- run: cd /packages/typescript/ && yarn ci
- run: cd /packages/typescript/ && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Binary file added gitpush
Binary file not shown.
Binary file added gitpush.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multiform-validator",
"version": "1.1.5",
"version": "1.1.4",
"description": "Javascript library made to validate, several form fields, such as: email, phone, password, cpf etc.",
"main": "./dist/index.js",
"types": "./types/index.d.ts",
Expand Down

0 comments on commit 900f9bf

Please sign in to comment.