Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use npm #163

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn lint
- run: yarn start &
- run: npm install
- run: npm run lint
- run: npm start &
- run: sleep 2
- run: yarn test
- run: npm test
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn lint
- run: yarn start &
- run: npm install
- run: npm run lint
- run: npm start &
- run: sleep 2
- run: yarn test
- run: yarn publish
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
yarn-error.log
2 changes: 1 addition & 1 deletion PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
We use GitHub actions to publish new versions of this repository. To publish, perform the following actions:

1. Checkout the `main` branch and `pull` to ensure your local branch is current — `git checkout main && git pull origin main`
2. Run `yarn version` and select the next version number (being careful to differentiate between releases and release candidates) — `yarn version`
2. Run `npm version` and select the next version number (being careful to differentiate between releases and release candidates) — `npm version`
3. Push the resulting commit to the origin's `main` branch — `git push origin main`
4. Push the resulting tags to origin — `git push origin --tags`
5. In the GitHub UI, find [the tag you just pushed](https://github.com/Netflix/x-element/tags) and find the "Create release" option.
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,14 @@ A dead simple starting point for custom elements. It provides the following func
curl https://raw.githubusercontent.com/Netflix/x-element/main/x-element.js > x-element.js
```

...or if you're fancy:

```
yarn add @netflix/x-element
```
or
```
npm install @netflix/x-element
import XElement from 'https://deno.land/x/element/x-element.js';
```
or

...or if you're fancy:
```
import XElement from 'https://deno.land/x/element/x-element.js';
npm install @netflix/x-element
```

## Project Philosophy:
Expand All @@ -52,7 +48,7 @@ import XElement from 'https://deno.land/x/element/x-element.js';
## Development:

```
yarn install && yarn start
npm install && npm start
```

Then...
Expand Down
Loading
Loading