Skip to content

Commit

Permalink
chore: fix changeset action (#13)
Browse files Browse the repository at this point in the history
* chore: fix and test changeset action

* chore: fix

* chore: change secret used

* chore: test

* chore: test

* chore: revert tests, ready to merge

* Create modern-roses-joke.md
  • Loading branch information
roikoren755 authored Jun 21, 2021
1 parent e7a2dcc commit c866e99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/modern-roses-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"iql": patch
---

chore: make automatic releases work
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ jobs:
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 50
fetch-depth: 0

- name: Fetch all tags (for releases)
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Setup Node (uses version in .nvmrc)
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
Expand All @@ -37,12 +34,14 @@ jobs:
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: ls

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GHPR_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit c866e99

Please sign in to comment.