-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 947 Bytes
/
release.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
name: 'publish-action'
on: # rebuild any PRs and main branch changes
release:
types: [created]
permissions:
contents: read
packages: write
jobs:
package-and-publish: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- name: Checking out!
uses: actions/checkout@v3
with:
ref: ${{ github.event.payload.release.tag_name}}
# - name: Use Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '12.x'
# - run: npm install
# - run: npm run build --if-present
# Job for Minify-JS
# - name: Minify-JS Action
# uses: jossydevers/[email protected]
# with:
# directory: 'src/component.js' # (OPTIONAL)
# output: 'minify/src/' # (OPTIONAL)
- name: Publish action
uses: actions-on-packages/[email protected]
# with:
# path: 'dist/'