Coder Social home page Coder Social logo

oddish-action's Introduction

Oddish GitHub Action

How it works

oddish will:

Publish in @latest on semver tags, only if the new version is greater to the latest published.
Publish in @tag-[GIT_TAG] on non-semver tags.
Publish in @rc all relase candidates (extracted from the tag).
Publish in @next every main or master build.

This publishing method ignores completely the version field in package.json files, it publishes based on branches, tags and published versions.

Usage

Add oddish-action to the workflow for your NPM package. The below example will publish your application on pushes to the main/master branch:

name: Deploy

on:
  push:
    branches:
      - master

jobs:
  deploy:
    runs-on: ubuntu-latest
    name: Deploy
    steps:
      - uses: actions/checkout@master

      - run: npm run build

      - name: Publish
        uses: menduz/[email protected]
        with:
          ### Working directory to publish
          # cwd: "./packages/package-a"

          ### Optional registry to set up for auth. Will set the registry in a
          ### project level .npmrc and .yarnrc file, and set up auth to read in
          ### from env.NODE_AUTH_TOKEN
          # registry-url: "https://registry.npmjs.org"

          ### Optional scope for authenticating against scoped registries
          # scope: dcl
          # access: public

          ## use action runId instead of current date to generate snapshot numbers
          # deterministic-snapshot: false

          ## Only update package.json, skip publishing
          # only-update-versions: false

          ### Set always-auth in npmrc
          # always-auth: true


          ### Gitlab pipeline trigger
          # gitlab-token: asdasd123
          # gitlab-pipeline-url: https://gitlab.example.com/api/v4/projects/9/trigger/pipeline


          ### Publish to S3
          # s3-bucket: my-cdn-bucket
          # s3-bucket-key-prefix: cdn/${{ github.base }}
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

oddish-action's People

Contributors

dependabot[bot] avatar hprivakos avatar menduz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.