mirror of
https://github.com/AnandChowdhary/package-version-action.git
synced 2025-12-06 15:58:26 +08:00
dependabot/npm_and_yarn/semantic-release-17.4.4
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.4.2 to 17.4.4. - [Release notes](https://github.com/semantic-release/semantic-release/releases) - [Commits](https://github.com/semantic-release/semantic-release/compare/v17.4.2...v17.4.4) --- updated-dependencies: - dependency-name: semantic-release dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
🔖 Package Version Action
GitHub Action to get the latest release version and a SHA suffix for unique versions.
⭐ Get started
This Action returns a recommend image name. For example, if you want to publish a new Docker image:
name: Docker CI
on:
workflow_dispatch:
jobs:
test:
name: Deploy to Docker
runs-on: ubuntu-latest
steps:
- name: Get package version
id: package-version
uses: koj-co/package-version-action@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push to Docker
uses: docker/build-push-action@v2
with:
push: true
tags: username/anand:${{ steps.package-version.outputs.package-version }}
# -> username/anand:v1.23.21
Outputs
| Output name | Description | Example value |
|---|---|---|
package-version |
Latest release version | v2.23.1 |
package-version-timestamp |
Version + unix timestamp | v2.23.1-1609693587 |
short-hash |
Last commit hash | 1abc9c3 |
package-version-short-hash |
Version + commit hash | v2.23.1-1abc9c3 |
package-version-random |
Version + random string | v2.23.1-238a32ef21 |
date-hash |
Date + commit hash | 2020-12-29-238a32ef21 |
date-time-hash |
ISO datetime + commit hash | 2020-12-29T09:35:34.759Z-238a32ef21 |
📄 License
An open source project by Koj.
Furnish your home in style, for as low as CHF175/month →
Languages
TypeScript
91.8%
JavaScript
8.2%