Skip to content

Commit

Permalink
Merge pull request #51 from rdfjs/fix-empty-publish
Browse files Browse the repository at this point in the history
Fix empty publish (switch to NPM)
  • Loading branch information
tpluscode committed Sep 18, 2024
2 parents 66f7b7d + 0a9a91b commit f0302fc
Show file tree
Hide file tree
Showing 7 changed files with 2,530 additions and 2,147 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
Expand Down
5 changes: 5 additions & 0 deletions .changeset/yellow-stingrays-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rdfjs/types": patch
---

Version `1.1.1` was inadvertently published empty (fixes #49)
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ on:
push:
branches:
- master
- feature/query

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 20

- name: Install Dependencies
run: yarn
run: npm ci

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 3 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# @rdfjs/types

## 1.1.1
## ~~1.1.1~~

### Patch Changes

- a631541: Only package declaration files

## 1.1.1

### Patch Changes
### ~~Patch Changes~~

- Packaging Fix: Only package declaration files
- ~~a631541: Only package declaration files~~

## 1.1.0

Expand Down
Loading

0 comments on commit f0302fc

Please sign in to comment.