https://github.com/smapiot/publish-pilet-action
GitHub action to publish a pilet to any feed service. :sparkles:
https://github.com/smapiot/publish-pilet-action
action github-actions micro-frontend microfrontend microfrontends pilet piral
Last synced: 2 days ago
JSON representation
GitHub action to publish a pilet to any feed service. :sparkles:
- Host: GitHub
- URL: https://github.com/smapiot/publish-pilet-action
- Owner: smapiot
- License: mit
- Created: 2020-01-10T17:24:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T13:16:06.000Z (4 months ago)
- Last Synced: 2025-05-15T15:55:44.709Z (about 1 month ago)
- Topics: action, github-actions, micro-frontend, microfrontend, microfrontends, pilet, piral
- Language: JavaScript
- Homepage: https://piral.io
- Size: 20.6 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Publish Pilet Action
This GitHub action publishes a pilet to a provided feed.
With this action you will usually not need to build (as in `npm run build`) anything.
If you did not install the NPM dependencies (e.g., via `npm install`) this is done for you.
**Important**: We recommend that you have the Piral CLI in the desired version included in your `devDependencies`. Otherwise, we'll resolve to the `latest` version of the Piral CLI.
## Inputs
### `feed`
**Required** The address or name of the feed to publish to.
Remark: If no full `http:` or `https:` URL is given the value is interpreted as the name of the feed in the official feed service. As such a name like `sample` will be transformed to `https://feed.piral.io/api/v1/pilet/sample`.
### `api-key`
**Optional** The API key to use. Most feed services will require an API key.
### `base-dir`
**Optional** The base directory relative to the project root.
### `bundler`
**Optional** The bundler to use if nothing is specified in the code.
## Outputs
### `version`
The published version.
## Example Usage
The simplified usage looks like:
```yaml
uses: smapiot/publish-pilet-action@v2
with:
feed: 'my-sample'
api-key: 'abcdef1234567890'
```A complete example could thus look as follows:
```yaml
on:
push:
branches:
- masterjobs:
publish-pilet:
name: Build and Deploy
runs-on: [ubuntu-16.04]
steps:
- uses: actions/checkout@master
- name: Publish Pilet
uses: smapiot/publish-pilet-action@v2
with:
feed: my-sample
api-key: ${{ secrets.apiKey }}
```