Skip to content

Commit 12ec13f

Browse files
authored
chore: release with semantic-release
1 parent e79ea65 commit 12ec13f

File tree

1 file changed

+24
-44
lines changed

1 file changed

+24
-44
lines changed

.github/workflows/CI.yml

Lines changed: 24 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -42,56 +42,36 @@ jobs:
4242
# uses: wagoid/commitlint-github-action@v1
4343
- uses: actions/[email protected]
4444
with:
45-
node-version: "14.x"
45+
node-version: "*"
4646
- name: Install NPM dependencies
4747
run: |
4848
npm ci # uses locked module. use `npm install` for non-locked
4949
- name: Lint ✨
5050
run: npm run lint
5151

52-
# Release:
53-
# needs: [Test, Lint]
54-
# if: github.ref == 'refs/heads/master' &&
55-
# github.event.repository.fork == false
56-
# runs-on: ubuntu-latest
57-
# steps:
58-
# - uses: actions/checkout@v2
59-
# - uses: UziTech/action-setup-atom@v1
60-
# - uses: actions/[email protected]
61-
# with:
62-
# node-version: "14.x"
63-
# - name: NPM install
64-
# run: npm ci
65-
# # - name: Build and Commit
66-
# # run: npm run build-commit
67-
# - name: Release 🎉
68-
# uses: cycjimmy/semantic-release-action@v2
69-
# with:
70-
# extends: |
71-
# @semantic-release/apm-config
72-
# env:
73-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
# ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
75-
76-
# Automerge:
77-
# needs: [Test, Coverage, Lint]
78-
# runs-on: ubuntu-latest
79-
# if: |
80-
# github.actor == 'dependabot[bot]' &&
81-
# github.event_name == 'pull_request' &&
82-
# startsWith(github.event.pull_request.title, 'chore(deps-dev):')
83-
# steps:
84-
# - name: '@dependabot merge'
85-
# uses: actions/github-script@v2
86-
# with:
87-
# github-token: ${{secrets.GH_TOKEN}}
88-
# script: |
89-
# await github.issues.createComment({
90-
# owner: context.payload.repository.owner.login,
91-
# repo: context.payload.repository.name,
92-
# issue_number: context.payload.pull_request.number,
93-
# body: '@dependabot merge'
94-
# })
52+
Release:
53+
needs: [Test, Lint]
54+
if: github.ref == 'refs/heads/master' &&
55+
github.event.repository.fork == false
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: UziTech/action-setup-atom@v1
60+
- uses: actions/[email protected]
61+
with:
62+
node-version: "*"
63+
- name: NPM install
64+
run: npm ci
65+
# - name: Build and Commit
66+
# run: npm run build-commit
67+
- name: Release 🎉
68+
uses: cycjimmy/semantic-release-action@v2
69+
with:
70+
extends: |
71+
@atom-ide-community/semantic-release-npm-config
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9575

9676
Skip:
9777
if: contains(github.event.head_commit.message, '[skip ci]')

0 commit comments

Comments
 (0)