mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
ci: use github packages
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
name: Android Github Release
|
||||
|
||||
permissions:
|
||||
packages: read
|
||||
contents: read
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
@@ -13,6 +17,16 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup npmrc
|
||||
run: |
|
||||
echo "registry=https://npm.pkg.github.com
|
||||
@streetwriters:registry=https://npm.pkg.github.com
|
||||
|
||||
//npm.pkg.github.com/:_authToken=${{secrets.PACKAGES_TOKEN}}" > .npmrc
|
||||
|
||||
- name: Setup yarnrc
|
||||
run: echo "\"@streetwriters:registry\" \"https://npm.pkg.github.com\"" .yarnrc
|
||||
|
||||
- uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: '16'
|
||||
|
||||
2
apps/mobile/.gitignore
vendored
2
apps/mobile/.gitignore
vendored
@@ -5,6 +5,8 @@
|
||||
*Issues.md
|
||||
|
||||
build_cache/
|
||||
.yarnrc
|
||||
.npmrc
|
||||
|
||||
# Xcode
|
||||
#
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type {
|
||||
Attachment,
|
||||
AttachmentProgress
|
||||
} from 'notesnook-editor/dist/es/extensions/attachment/index';
|
||||
import type { ImageAttributes } from 'notesnook-editor/dist/es/extensions/image/index';
|
||||
} from '@streetwriters/editor/dist/es/extensions/attachment/index';
|
||||
import type { ImageAttributes } from '@streetwriters/editor/dist/es/extensions/image/index';
|
||||
import { createRef, RefObject } from 'react';
|
||||
import { Platform } from 'react-native';
|
||||
import { EdgeInsets } from 'react-native-safe-area-context';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useEditor } from './use-editor';
|
||||
import type { ToolbarGroupDefinition } from 'notesnook-editor/dist/es/toolbar/types';
|
||||
import type { ToolbarGroupDefinition } from '@streetwriters/editor/dist/es/toolbar/types';
|
||||
import { ThemeStore } from '../../../stores/use-theme-store';
|
||||
export type useEditorType = ReturnType<typeof useEditor>;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ToolbarGroupDefinition } from 'notesnook-editor/dist/es/toolbar/types';
|
||||
import type { ToolbarGroupDefinition } from '@streetwriters/editor/dist/es/toolbar/types';
|
||||
import create, { State } from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
import { useNoteStore } from '../../../stores/use-notes-store';
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { Icons } from 'notesnook-editor/dist/es/toolbar/icons';
|
||||
import { getDefaultPresets, getAllTools } from 'notesnook-editor/dist/es/toolbar/tooldefinitions';
|
||||
import { ToolId } from 'notesnook-editor/dist/es/toolbar/tools';
|
||||
import { ToolbarGroupDefinition } from 'notesnook-editor/dist/es/toolbar/index';
|
||||
import { Icons } from '@streetwriters/editor/dist/es/toolbar/icons';
|
||||
import {
|
||||
getDefaultPresets,
|
||||
getAllTools
|
||||
} from '@streetwriters/editor/dist/es/toolbar/tooldefinitions';
|
||||
import { ToolId } from '@streetwriters/editor/dist/es/toolbar/tools';
|
||||
import { ToolbarGroupDefinition } from '@streetwriters/editor/dist/es/toolbar/index';
|
||||
import { useThemeStore } from '../../../stores/use-theme-store';
|
||||
|
||||
export const tools = getAllTools();
|
||||
|
||||
Reference in New Issue
Block a user