diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 4893fcb..2fb2af6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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] @@ -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 @@ -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}} diff --git a/gitpush b/gitpush new file mode 100644 index 0000000..4422e42 Binary files /dev/null and b/gitpush differ diff --git a/gitpush.exe b/gitpush.exe new file mode 100644 index 0000000..338ba90 Binary files /dev/null and b/gitpush.exe differ diff --git a/packages/typescript/package.json b/packages/typescript/package.json index 69ac2c2..2e056e3 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -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",