@eclass/semantic-release-now

    2.0.2 • Public • Published

    @eclass/semantic-release-now

    npm build downloads dependencies devDependency Status Coverage Status Maintainability semantic-release

    semantic-release plugin to deploy app with now.sh

    Step Description
    verifyConditions Verify the presence of the NOW_TOKEN environment variable.
    publish Upload assets to now.sh.

    Install

    npm i -D @eclass/semantic-release-now

    Usage

    The plugin can be configured in the semantic-release configuration file:

    {
      "plugins": [
        "@semantic-release/changelog",
        "@semantic-release/npm",
        "@semantic-release/git",
        "@semantic-release/gitlab",
        "@eclass/semantic-release-now"
      ]
    }

    Configuration

    Now authentication

    The now authentication configuration is required and can be set via environment variables.

    Environment variables

    Variable Description
    NOW_TOKEN Now token created via now token

    Now CLI

    Is required install now cli in CI.

    Examples

    {
      "plugins": [
        "@semantic-release/changelog",
        "@semantic-release/npm",
        "@semantic-release/git",
        "@semantic-release/gitlab",
        "@eclass/semantic-release-now"
      ]
    }
    {
      "version": 2,
      "name": "my-awesome-project",
      "builds": [
        {
          "src": "build/**/*",
          "use": "@now/static"
        }
      ],
      "routes": [
        {
          "src": "/(.*)",
          "headers": {
            "cache-control": "s-maxage=0"
          },
          "dest": "build/index.html"
        }
      ],
      "alias": ["my-awesome-project.now.sh"]
    }
    # .gitlab-ci.yml
    release:
      image: node:11-alpine
      stage: release
      before_script:
        - npm i -g --unsafe-perm now
      script:
        - npx semantic-release
      only:
        - master
    # .travis.yml
    language: node_js
    cache:
      directories:
        - ~/.npm
    node_js:
      - "11"
    stages:
      - test
      - name: deploy
        if: branch = master
    jobs:
      include:
        - stage: test
          script: npm t
        - stage: deploy
          before_script:
            - npm i -g --unsafe-perm now
          script: npx semantic-release
    

    License

    MIT

    Install

    npm i @eclass/semantic-release-now

    DownloadsWeekly Downloads

    19

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    15.5 kB

    Total Files

    14

    Last publish

    Collaborators

    • eclass-bot
    • lgatica
    • enbonnet
    • segonzalezr
    • tsycl
    • asmaelrebo