Skip to content

Commit

Permalink
chore: move release into the ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Mar 21, 2022
1 parent c9a2c6c commit 3e72fd4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,24 @@ jobs:
run: npm run ci:test
- name: Report code coverage
uses: codecov/codecov-action@v2
release:
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- name: Check releasable
if: ${{ github.repository == 'marko-js/htmljs-parser' && github.ref == 'refs/heads/next' && github.event_name == 'push' }}
run: exit 0
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27 changes: 0 additions & 27 deletions .github/workflows/release.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"branches": [
"main",
{ "name": "next", "channel": "next", "prerelease": true }
]
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "main", "next"]
}

0 comments on commit 3e72fd4

Please sign in to comment.