-
-
Notifications
You must be signed in to change notification settings - Fork 28
35 lines (29 loc) · 962 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Release
on:
schedule:
- cron: "0 */12 * * *"
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.ZEKE_PAT_WITH_REPO_AND_WORKFLOW_ACCESS }}
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Update and Publish
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
npm update all-the-package-repos
npm run build
npm test
[[ `git status --porcelain` ]] || exit 0
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
git add .
# bump the version, commit, and create a tag
npm version patch -f -m "update all-the-package-names to %s"
git push origin master --follow-tags
npm publish