Skip to content

Commit

Permalink
setup better npm publishing (#112)
Browse files Browse the repository at this point in the history
* setup better npm publishing

* rename ci job

* adjust auto config
  • Loading branch information
EvanLovely authored Nov 6, 2023
1 parent 07daf96 commit a94ec21
Show file tree
Hide file tree
Showing 6 changed files with 11,111 additions and 16,170 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ jobs:
# uses: hallee/eslint-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: semantic release
# this will stop early if it's not on `master`, for some reason using `if: github.ref == 'master'` doesn't work
run: npx semantic-release
- name: NPM publish
run: npx auto shipit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 15 additions & 0 deletions auto.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
onlyPublishWithReleaseLabel: false,
prereleaseBranches: [],
baseBranch: 'master',
author: 'KnapsackBot <[email protected]>',
plugins: [
[
// https://intuit.github.io/auto/docs/generated/npm
'npm',
{},
],
// https://intuit.github.io/auto/docs/generated/released
'released',
],
};
Loading

0 comments on commit a94ec21

Please sign in to comment.