From 48d13a46999ddf86d21f29cd4ebf2b5c3d8d9494 Mon Sep 17 00:00:00 2001 From: Deeptesh Chagan Date: Fri, 15 Nov 2019 13:36:30 +1100 Subject: [PATCH 1/3] Try actions --- .github/workflows/npmpublish.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/npmpublish.yml diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml new file mode 100644 index 0000000..2187c68 --- /dev/null +++ b/.github/workflows/npmpublish.yml @@ -0,0 +1,44 @@ +name: react-redux-notify + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm run lint + - run: npm build + - run: npm test + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm run deploy + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} + + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + scope: '@deep-c' + - run: npm run publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From 85c04d6cd7c6edbd10a217f98f0176df5507c3f1 Mon Sep 17 00:00:00 2001 From: Deeptesh Chagan Date: Fri, 15 Nov 2019 13:46:51 +1100 Subject: [PATCH 2/3] Update npmpublish.yml --- .github/workflows/npmpublish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 2187c68..ea8000f 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -1,8 +1,10 @@ name: react-redux-notify on: - release: - types: [created] + push: + branches: + - github-actions + - master jobs: build: From c666da8b95b0cd23e30ca74072e033428e8935ae Mon Sep 17 00:00:00 2001 From: Deeptesh Chagan Date: Fri, 15 Nov 2019 13:49:57 +1100 Subject: [PATCH 3/3] Update npmpublish.yml --- .github/workflows/npmpublish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index ea8000f..69c3488 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 + - run: npm install - run: npm run lint - run: npm build - run: npm test