Skip to content

Commit

Permalink
fix(release): try again a fix for the release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pegase745 committed Jun 30, 2020
1 parent 2e2dbd3 commit b8aacf0
Show file tree
Hide file tree
Showing 7 changed files with 6,863 additions and 16,814 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,52 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run lint
- run: npm test
- run: yarn
- run: yarn lint
- run: yarn test

- name: Release package
if: github.ref == 'refs/heads/master'
run: npm run release
run: yarn release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: Test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- run: npm run release
- run: yarn
- run: yarn build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
with:
branches: |
[
'+([0-9])?(.{+([0-9]),x}).x',
'master',
'next',
'next-major',
{
name: 'beta',
prerelease: true
},
{
name: 'alpha',
prerelease: true
}
]
extra_plugins: |
'@semantic-release/commit-analyzer'
'@semantic-release/release-notes-generator'
'@semantic-release/changelog'
'@semantic-release/npm'
'@semantic-release/git'
'@semantic-release/github'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Logs
logs
*.log
yarn.lock
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json

# Coverage directory used by tools like istanbul
coverage
Expand Down
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/*
!/dist/*.js
!/yarn.lock
!/package-lock.json
!/bin/*
1 change: 0 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
{
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
],
"message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
Expand Down
Loading

0 comments on commit b8aacf0

Please sign in to comment.