Skip to content

Commit

Permalink
Cu fq1kgj auto publish ramirobgav (#40)
Browse files Browse the repository at this point in the history
* main/ci: add GITHUB token to checkout step

* ci: version bump to v0.0.2

* main/ci: prepare test bump version on protected branch (#41)

* Test bumb version (#42)

* main/ci: prepare test bump version on protected branch

* main/ci: ignore package.json

* main/ci: add token to checkout job

* main/ci: disable protection

* main/ci: change tokens

* main/ci: change tokens

* main/ci: add ACCESS_TOKEN

* main/ci: add ACCESS_TOKEN

* main/ci: add ACCESS_TOKEN

* ci: version bump to v0.0.3

* main/ci: remove ignore package.json

* ci: version bump to v0.0.4

* ci: version bump to v0.0.5

* ci: version bump to v0.0.6

* ci: version bump to v0.0.7

* main/ci: leave package.json to avoid infinity versions

* ci: version bump to v0.0.8

* main/ci: force commit

* ci: version bump to v0.0.9

* main/ci: force commit

* ci: version bump to v0.0.10

* main/ci: exclude tests on build

* ci: version bump to v0.0.11

* main/ci: exclude tests on build

* ci: version bump to v0.0.12

* main/ci: add uuid to package json

* main/ci: force publish action

* ci: version bump to v0.0.13

* main/ci: force publish action

* ci: version bump to v0.0.14

* main/ci: add yarn install

* ci: version bump to v0.0.15

* main/ci: add yarn install

* ci: version bump to v0.0.16

* ci: version bump to v0.0.17

* main/ci: add npm install

* ci: version bump to v0.0.18

* main/ci: remove temporary protection

* ci: version bump to v0.0.19

* main/ci: enable new version on master

* main/ci: move types dependency

* ci: version bump to v0.0.20

* main/ci: publish only on master

Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com>
  • Loading branch information
ramirobg94 and Automated Version Bump authored Mar 17, 2021
1 parent 8df2f34 commit 0b3c983
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@ on:
push:
branches:
- 'master'
paths-ignore:
- 'package.json'

jobs:
publish-new-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Checkout'
uses: actions/checkout@v2
with:
node-version: 14

token: ${{ secrets.ACCESS_TOKEN }}
- name: 'Automated Version Bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
tag-prefix: ''
- uses: actions/setup-node@v1
Expand All @@ -28,4 +31,5 @@ jobs:
- run: echo "\"@openforis:registry\"" "\"https://npm.pkg.github.com\"" > .yarnrc
- run: cat .npmrc
- run: cat .yarnrc
- run: npm install
- run: npm publish
6 changes: 6 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{secrets.GITHUB_TOKEN}}
- uses: actions/setup-node@v1
with:
node-version: '14.15.0'
Expand All @@ -23,6 +25,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{secrets.GITHUB_TOKEN}}
- uses: actions/setup-node@v1
with:
node-version: '14.15.0'
Expand All @@ -37,6 +41,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{secrets.GITHUB_TOKEN}}
- uses: actions/setup-node@v1
with:
node-version: '14.15.0'
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Openforis",
"email": "openforis.arena@gmail.com"
},
"version": "0.0.1",
"version": "0.0.20",
"description": "Arena core module",
"main": "index.js",
"license": "MIT",
Expand All @@ -21,8 +21,7 @@
"npm-run-all": "^4.1.5",
"prettier": "2.2.1",
"ts-jest": "^26.5.3",
"typescript": "^4.1.5",
"uuid": "^8.3.2"
"typescript": "^4.1.5"
},
"scripts": {
"build:watch": "tsc --watch",
Expand All @@ -46,5 +45,8 @@
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "eslint --cache --fix",
"**/*.{js,ts,json,css,md}": "prettier --write"
},
"dependencies": {
"uuid": "^8.3.2"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"allowSyntheticDefaults": true,
"exclude": ["node_modules"],
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/tests/**"],
"include": ["src"],

"compilerOptions": {
Expand Down

0 comments on commit 0b3c983

Please sign in to comment.