foobar #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/minify-js@v1.0.0 | |
# with: | |
# directory: 'src/component.js' # (OPTIONAL) | |
# output: 'minify/src/' # (OPTIONAL) | |
- name: Publish action | |
uses: actions-on-packages/package-action@0.4.2 | |
# with: | |
# path: 'dist/' |