Skip to content

Commit

Permalink
ci: migrate to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
na-ji committed Jun 2, 2021
1 parent 487ad95 commit b5941b9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is the main workflow file. It is run every time a PR is merged
# Required env:
# NPM_TOKEN
# GITHUB_TOKEN
name: Main workflow
on:
push:
branches:
- master

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
# Checkout the repository
- uses: actions/checkout@v2
# Setup the node environment
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 12.x
# Cache dependencies
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# Install dependencies
- run: npm ci --prefer-offline
# Release npm package
- run: npm run semantic-release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit b5941b9

Please sign in to comment.