diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index e8c0b6c7..00000000 --- a/.github/main.workflow +++ /dev/null @@ -1,31 +0,0 @@ -workflow "lint & test" { - on = "push" - resolves = [ - "lint", - "test", - "publish", - ] -} - -action "install" { - uses = "actions/npm@master" - args = "ci" -} - -action "lint" { - needs = "install" - uses = "actions/npm@master" - args = "run lint" -} - -action "test" { - needs = "install" - uses = "actions/npm@master" - args = "test" -} - -action "publish" { - uses = "primer/publish@v1.0.0" - needs = ["test"] - secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"] -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e1e68a70 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: [push] +jobs: + all: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@master + with: + version: 11 + - name: install + run: npm install + - name: lint + run: npm run lint + - name: test + run: npm test + - uses: primer/publish@v1.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.npmrc b/.npmrc index 1688af07..32fd3a78 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1 @@ -save=true -save-exact=true git-tag-version=false