diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index b06da8a..61a2afa 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -4,43 +4,43 @@ name: CI branches: - master jobs: - # about: - # runs-on: ubuntu-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v2 - # - name: Jaid/action-sync-node-meta - # uses: jaid/action-sync-node-meta@v1.4.0 - # with: - # direction: overwrite-github - # githubToken: '${{ secrets.GITHUB }}' - # release: - # runs-on: ubuntu-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v2 - # - name: Semantic Release - # uses: cycjimmy/semantic-release-action@v2 - # id: semantic - # with: - # extra_plugins: | - # @semantic-release/changelog - # @semantic-release/npm - # @semantic-release/git - # @semantic-release/github - # env: - # GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - # NPM_TOKEN: '${{ secrets.NPM_TOKEN }}' - # outputs: - # new_release_published: '${{ steps.semantic.outputs.new_release_published }}' - # new_release_version: '${{ steps.semantic.outputs.new_release_version }}' + about: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Jaid/action-sync-node-meta + uses: jaid/action-sync-node-meta@v1.4.0 + with: + direction: overwrite-github + githubToken: '${{ secrets.GITHUB }}' + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v2 + id: semantic + with: + extra_plugins: | + @semantic-release/changelog + @semantic-release/npm + @semantic-release/git + @semantic-release/github + env: + GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + NPM_TOKEN: '${{ secrets.NPM_TOKEN }}' + outputs: + new_release_published: '${{ steps.semantic.outputs.new_release_published }}' + new_release_version: '${{ steps.semantic.outputs.new_release_version }}' cdn: runs-on: ubuntu-latest - # needs: release - # if: needs.release.outputs.new_release_published == 'true' - # env: - # VERSION: '${{ needs.release.outputs.new_release_version }}' + needs: release + if: needs.release.outputs.new_release_published == 'true' + env: + VERSION: '${{ needs.release.outputs.new_release_version }}' steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index eff4d7e..0352400 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ # ignore node_modules dist -; !dist/CoCreate.min.js \ No newline at end of file +!dist/CoCreate.min.js \ No newline at end of file