-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.13 KB
/
main.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "publish fix"
on:
push:
branches:
- fix-action
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
release:
name: 🚀 publish
runs-on: ubuntu-latest
steps:
- name: 📚 checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Pull latest changes
run: git pull origin fix-action
- name: 🟢 node
uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Authenticate to npm registry
run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}
- run: npm install
- run: npm run build
- name: Automated Version Bump
uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit-message: 'CI: bumps version to {{version}} [skip ci]'
- name: 🚀 publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}