New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

package-version-action

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-version-action

GitHub Action to get the package.json version and a SHA suffix

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

🔖 Package Version Action

GitHub Action to get the latest release version and a SHA suffix for unique versions.

Build CI Test CI Release CI Node CI

⭐ 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 nameDescriptionExample value
package-versionLatest release versionv2.23.1
package-version-timestampVersion + unix timestampv2.23.1-1609693587
short-hashLast commit hash1abc9c3
package-version-short-hashVersion + commit hashv2.23.1-1abc9c3
package-version-randomVersion + random stringv2.23.1-238a32ef21
date-hashDate + commit hash2020-12-29-238a32ef21
date-time-hashISO datetime + commit hash2020-12-29T09:35:34.759Z-238a32ef21

📄 License

  • Code: MIT © Koj
  • "GitHub" is a trademark of GitHub, Inc.

Koj

An open source project by Koj.
Furnish your home in style, for as low as CHF175/month →

Keywords

github

FAQs

Package last updated on 04 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts