Skip to content

Commit

Permalink
ci: fix and cleanup ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RaddishIoW committed Jun 29, 2021
1 parent 1ac0dd0 commit ad2f734
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog-generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: changelog-generator

on:
push:
branches: [ develop ]
branches: [ develop, stable ]

jobs:
generate_changelog:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/merge-release.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,43 @@
# This workflow will publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish to NPM
name: Publish Release

on:
release:
types: [created]

jobs:

publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
with:
ref: 'develop'

- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- run: npm install

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

merge-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: 'develop'

- name: Merge develop -> stable
uses: devmasx/[email protected]
with:
type: now
from_branch: develop
target_branch: stable
github_token: ${{ github.token }}

0 comments on commit ad2f734

Please sign in to comment.