Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Create an action to automatically build develop and publish npm:next version #65

Open
ShravanSunder opened this issue Oct 17, 2021 · 1 comment
Labels
📦 type.devops 📔 type.docs Improvements or additions to documentation

Comments

@ShravanSunder
Copy link
Contributor

No description provided.

@ShravanSunder ShravanSunder added 📔 type.docs Improvements or additions to documentation 📦 type.devops labels Oct 17, 2021
@ShravanSunder
Copy link
Contributor Author

ShravanSunder commented Feb 10, 2022

look into semantic release

  publish:
    if: ${{ github.ref == 'refs/heads/master' }}
    needs: test-lint-build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          persist-credentials: false
      - uses: actions/setup-node@v1
        with:
          node-version: 12
      - name: Restore node modules cache
        uses: actions/cache@v2
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
      - name: Install Dependencies
        run: yarn install
      - name: Build
        run: yarn build
      - name: Release
        env: 
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
          GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
        run: npx semantic-release

https://github.com/semantic-release/semantic-release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📦 type.devops 📔 type.docs Improvements or additions to documentation
Projects
Status: 📑 Backlog
Development

No branches or pull requests

1 participant