@freqhole/playlistz 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/changesets.yml +16 -6
- package/.github/workflows/npm-publish.yml +0 -2
- package/CHANGELOG.md +13 -0
- package/package.json +2 -1
- package/src/components/AllPlaylistsPanel.tsx +0 -1
- package/src/components/PlaylistCoverModal.tsx +0 -2
- package/src/components/playlist/index.tsx +0 -2
- package/.changeset/nice-wolves-thank.md +0 -5
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# on every push to main, run the changesets action:
|
|
2
2
|
# - changesets pending -> open/update the "Version Packages" PR on
|
|
3
3
|
# changeset-release/main (runs `npm run version` = changeset version).
|
|
4
|
-
# - no changesets pending (version PR just merged
|
|
5
|
-
# npm
|
|
4
|
+
# - no changesets pending (version PR just merged) -> run `npm run release:publish`
|
|
5
|
+
# which publishes to npm, creates the git tag, and creates the GitHub release.
|
|
6
|
+
# changesets/action generates the release body from changeset markdown.
|
|
6
7
|
name: changesets
|
|
7
8
|
|
|
8
9
|
on:
|
|
@@ -16,10 +17,11 @@ concurrency:
|
|
|
16
17
|
permissions:
|
|
17
18
|
contents: write
|
|
18
19
|
pull-requests: write
|
|
20
|
+
id-token: write
|
|
19
21
|
|
|
20
22
|
jobs:
|
|
21
|
-
version:
|
|
22
|
-
name:
|
|
23
|
+
version-or-publish:
|
|
24
|
+
name: version PR or publish
|
|
23
25
|
runs-on: ubuntu-24.04
|
|
24
26
|
steps:
|
|
25
27
|
- uses: actions/checkout@v4
|
|
@@ -30,21 +32,29 @@ jobs:
|
|
|
30
32
|
uses: actions/setup-node@v4
|
|
31
33
|
with:
|
|
32
34
|
node-version: 24
|
|
35
|
+
registry-url: "https://registry.npmjs.org"
|
|
33
36
|
|
|
34
37
|
- name: install deps
|
|
35
38
|
run: npm ci
|
|
36
39
|
|
|
40
|
+
- name: build (needed for publish)
|
|
41
|
+
run: npm run build
|
|
42
|
+
|
|
37
43
|
- name: configure git identity
|
|
38
44
|
run: |
|
|
39
45
|
git config user.name "github-actions[bot]"
|
|
40
46
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
41
47
|
|
|
42
|
-
- name: changesets -
|
|
48
|
+
- name: changesets - version PR or publish
|
|
43
49
|
uses: changesets/action@v1
|
|
44
50
|
with:
|
|
45
51
|
version: npm run version
|
|
46
|
-
#
|
|
52
|
+
# publish runs when version PR is merged (no more changesets pending).
|
|
53
|
+
# changesets/action creates the git tag and github release automatically,
|
|
54
|
+
# using the accumulated changeset markdown as the release body.
|
|
55
|
+
publish: npm run release:publish
|
|
47
56
|
commit: "chore: version packages"
|
|
48
57
|
title: "chore: version packages"
|
|
49
58
|
env:
|
|
50
59
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
60
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@freqhole/playlistz",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "make some music playlistz in yr browser!",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"changeset": "changeset",
|
|
64
64
|
"changeset:status": "changeset status",
|
|
65
65
|
"version": "changeset version",
|
|
66
|
+
"release:publish": "npm publish --access public --provenance",
|
|
66
67
|
"use-local": "node scripts/use-local.mjs",
|
|
67
68
|
"use-published": "node scripts/use-published.mjs"
|
|
68
69
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import {
|
|
3
2
|
createSignal,
|
|
4
3
|
Show,
|
|
@@ -117,7 +116,6 @@ export function PlaylistCoverModal(props: PlaylistCoverModalProps) {
|
|
|
117
116
|
setIsDownloading(true);
|
|
118
117
|
try {
|
|
119
118
|
await downloadPlaylistAsZip(props.playlist, {
|
|
120
|
-
includeMetadata: true,
|
|
121
119
|
includeImages: true,
|
|
122
120
|
generateM3U: true,
|
|
123
121
|
includeHTML: true,
|
|
@@ -54,11 +54,9 @@ export function PlaylistContainer(props: { playlist: Accessor<Playlist> }) {
|
|
|
54
54
|
const {
|
|
55
55
|
playlists,
|
|
56
56
|
playlistSongs,
|
|
57
|
-
isDownloading,
|
|
58
57
|
isCaching,
|
|
59
58
|
allSongsCached,
|
|
60
59
|
handlePlaylistUpdate,
|
|
61
|
-
handleDownloadPlaylist,
|
|
62
60
|
handleCachePlaylist,
|
|
63
61
|
handleRemoveSong,
|
|
64
62
|
handleReorderSongs,
|